Handle discovery of endpoints in response header #221

Closed
opened 2019-04-23 09:42:37 +02:00 by swentel · 7 comments
swentel commented 2019-04-23 09:42:37 +02:00 (Migrated from github.com)

Good example - see https://unicyclic.com/mal/

Fix #147 at the same time too.

Good example - see https://unicyclic.com/mal/ Fix #147 at the same time too.
swentel commented 2019-04-26 16:10:34 +02:00 (Migrated from github.com)

So I can find the Link endpoints now in the response. However, when testing with unicyclic.com/mal,
I'm arriving at https://unicyclic.com/php/auth_endpoint.php (with additional get params), and the response says 'Error: Please log in first!'. So I'm not sure here what to do. Can I redirect somehow ?

@mblaney any ideas ? Or should I ignore that error. It would mean you'd have to open a browser first, login, and after that, from within indigenous, it should work (as the browser launched from there will probably find the cookie).

So I can find the Link endpoints now in the response. However, when testing with unicyclic.com/mal, I'm arriving at https://unicyclic.com/php/auth_endpoint.php (with additional get params), and the response says 'Error: Please log in first!'. So I'm not sure here what to do. Can I redirect somehow ? @mblaney any ideas ? Or should I ignore that error. It would mean you'd have to open a browser first, login, and after that, from within indigenous, it should work (as the browser launched from there will probably find the cookie).
mblaney commented 2019-04-27 15:04:06 +02:00 (Migrated from github.com)

Hi @swentel that sounds pretty good, I need to handle that case so that after the user logs in you get the correct data returned.

Feel free to ignore it, but if you want to test further you can create an account on unicyclic.com to get past the logged in check :-)

Hi @swentel that sounds pretty good, I need to handle that case so that after the user logs in you get the correct data returned. Feel free to ignore it, but if you want to test further you can create an account on unicyclic.com to get past the logged in check :-)
swentel commented 2019-05-03 14:20:39 +02:00 (Migrated from github.com)

@mblaney new release pushed. After authenticating first in a browser, I can then authenticate with Indigenous. Reader works - although I couldn't see my own feed which I added or maybe I did something wrong, possible too :)

@mblaney new release pushed. After authenticating first in a browser, I can then authenticate with Indigenous. Reader works - although I couldn't see my own feed which I added or maybe I did something wrong, possible too :)
mblaney commented 2019-05-04 01:34:43 +02:00 (Migrated from github.com)

hi @swentel that's great! nice work :-)

what feed were you trying to add? I just logged in as you and tried adding realize.be, which discovered a bunch of feeds that I could add. Let me know if you noticed any errors... or lack of errors after clicking something and it not doing what you expected.

hi @swentel that's great! nice work :-) what feed were you trying to add? I just logged in as you and tried adding realize.be, which discovered a bunch of feeds that I could add. Let me know if you noticed any errors... or lack of errors after clicking something and it not doing what you expected.
swentel commented 2019-05-04 10:34:52 +02:00 (Migrated from github.com)

@mblaney Hey. So adding the feed worked fine. I saw the items in Indigenous - maybe I was scrolling too fast initially, that's possible :)

However, in Indigenous, you can also manage channels and feeds, and in the 'All' channel, I don't see anything there. Afaik, managing channels works fine with Aperture and the Drupal microsub server. So either Indigenous can't fully parse the 'manage feed in a channel' response from unicyclic (although I should probably see an error I think, should double check), or maybe that's not implemented yet ?

@mblaney Hey. So adding the feed worked fine. I saw the items in Indigenous - maybe I was scrolling too fast initially, that's possible :) However, in Indigenous, you can also manage channels and feeds, and in the 'All' channel, I don't see anything there. Afaik, managing channels works fine with Aperture and the Drupal microsub server. So either Indigenous can't fully parse the 'manage feed in a channel' response from unicyclic (although I should probably see an error I think, should double check), or maybe that's not implemented yet ?
mblaney commented 2019-05-04 10:57:59 +02:00 (Migrated from github.com)

thanks for the feedback, I see the problem now. I use 'all' internally so don't return anything when it's used as a channel name.... will have to fix that!

Also I've been checking to see if indigenous has updated on my phone, and it just did and I can log in :-) will have a play and see what else I need to fix.

thanks for the feedback, I see the problem now. I use 'all' internally so don't return anything when it's used as a channel name.... will have to fix that! Also I've been checking to see if indigenous has updated on my phone, and it just did and I can log in :-) will have a play and see what else I need to fix.
swentel commented 2019-05-04 12:33:03 +02:00 (Migrated from github.com)

@mblaney ok cool! If you think there's a problem in indigenous, don't hesitate to open issues :)

It also looks like the 'read' call doesn't get through. The posts are always set to 'new' - note - this is a tricky thing in indigenous (but works with the other two micosub servers).

@mblaney ok cool! If you think there's a problem in indigenous, don't hesitate to open issues :) It also looks like the 'read' call doesn't get through. The posts are always set to 'new' - note - this is a tricky thing in indigenous (but works with the other two micosub servers).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
inhji/indiepass-android#221
No description provided.