-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should the token endpoint be shared with normal IndieAuth? #17
Comments
Just to clarify:
The token endpoint for AutoAuth is discovered from the resource! But it is using the same rel-value, so if the resource is a profile page supporting IndieAuth, the endpoint has to support both. I currently run completely different code for IndieAuth from my homepage and for AutoAuth (so I can currently not provide AutoAuth for my front page), which might suggest having a different rel is fine - next question then is "then what's that one called?" |
My current thinking would be to do an experimental extra name, and suggest applications look for that first, and fall back to Still don't have a good idea about a name. I'd like to avoid putting "autoauth" in the name. |
I thought there was a move away from experimental names because we end up getting stuck with them, same as |
The motivation for an extra endpoint isn't so much about storage, but about being able to not change your existing token endpoint (e.g. because you've setup your micropub etc using an external one and don't want to touch that) while implementing AutoAuth. |
ok fair enough, I would feel better commenting after I've put more work into implementing both sides of this. I still think it's less work overall to ask people writing token endpoints to do the extra check for AutoAuth rather than making everyone else parse out another |
At IWC Åmål, we discussed some questions I had after trying to implement a token endpoint for ‘normal’ IndieAuth and AutoAuth. One of my questions was about the two calls that are made by the token endpoint to the auth endpoint, which differ greatly for both the flows.
For the normal flow, one would send
code
,client_id
andredirect_uri
to the auth endpoint associated with the owner of the token endpoint. For AutoAuth, one would sendcode
,root_uri
,realm
,scope
andcallback_url
to the auth endpoint associated with the user that tries to access the resource (eg. feed). These two sets only havecode
in common.This does not have to be a problem, but I asked why it was. The point is that the auth endpoints belong to different parties, thus having different trust relationships between the token endpoint and the auth endpoints.
It also made us question whether or not the token endpoint of AutoAuth is or should be the same as the token endpoint for regular IndieAuth, as they play different roles. @Zegnat pointed out that a big part of there role is one-on-one the same, and that it was nice to have one database of all tokens. I on the other hand pointed out that I would like to separate the database with tokens that point to me vs tokens that point to anyone who tried logging into my site. @sknebel wanted to think more about the matter, hence this issue.
Could it be that this token endpoint is a different endpoint (which is advertised on the resources they apply to, rather than the homepage of the user) and should it have a different rel-value then too? Or should there really be one endpoint?
The text was updated successfully, but these errors were encountered: