-
Notifications
You must be signed in to change notification settings - Fork 7
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
Usage of the Me Parameter in the Access Token Response #132
Comments
Some more context: this is specifically for Ticketing. I’m testing from staging.gregorlove.com and sending tickets to wpdev.gwg.us. In my mind, sending a ticket to someone is analogous to an IndieAuth Client redeeming an David’s implementation is apparently expecting that It feels odd to me to return someone else’s URL in the I think the main use for the (Originally published at: https://gregorlove.com/2023/12/some-more-context/) |
I honestly believe that is what it is supposed to mean, thus the need for clarification in the overall IndieAuth spec, not just the Ticketing extension. Me is defined as "the canonical user profile URL for the user this access token corresponds to" which applies whether it is grant_type=authorization_code or grant_type=ticket by the way the spec is written. So, in my interpretation, @gRegorLove is issuing a token to my user...wpdev.gwg.us, but in his, he's issuing a token to his user that I'm allowed to use. I'm assuming his conception is based on his being the owner of the resource. I agree with @gRegorLove that I should verify the initial subject before asking for a token and have done that. There is no point in collecting a token meant for someone has no role on that site. However, I still believe that for both grant_type flows, I should verify who the token is for in a multi-user environment with the me response, because that is who the token endpoint says the token is for. The ticket endpoint receiving a subject could be a way of a ticket endpoint deciding whether it will redeem the token or reject it, but I'm not sure it should be used to ultimately decide who to deliver the redeemed token to in a multi-user environment. |
In my interpretation, when I grant a token to a client like indiebookclub, I’m issuing the token to that client and the token has my information in it. Similarly, with Ticketing, I’m granting a token to an individual site and the token has my information in it. In both cases the token is used to access something on my site. I’m open to do this differently, but currently I don’t understand why it would be different. The (Originally published at: https://gregorlove.com/2023/12/in-my-interpretation/) |
This is the result of a conversation @gRegorLove and I had at IWC SD 2023 today.
In my implementation, I take the me property of the access token response and use this as the user identifier.
@gRegorLove pointed out this idea is not explicit in the specification. It is implied by the fact that the 'me' entered into the client need not be the same URL output as the 'me' parameter, however, which was my assumption.
Proposing that this be noted more explicitly in the specification.
The text was updated successfully, but these errors were encountered: