-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Adopt Authorization Code Grant #435
Comments
Quick followup on one other potential issue @mstenta raised with redirects: What url would we give as the I was trying to remember the bit we did to finally resolve #324: Basically, the config above makes our domain But no telling for sure until we actually try it out. Which is all the more reason to punt. |
Just did a quick search, a couple good resources for implementing this in native apps:
Regarding the But yes, this seems like something we can punt on for now. It shouldn't be awfully hard to incorporate the authorization flow later on 👍 FWIW... perhaps most important here is that an embedded user-agent (like web-view) is NOT used. An external user-agent (like a browser) should be used instead: https://tools.ietf.org/html/rfc8252#section-8.12
In farmOS 1.x I think it's possible to register multiple redirect_uri per client. But it doesn't seem like this is the case for 2.x. For this reason, we might need to create two clients: |
See https://www.drupal.org/project/farm/issues/3185721#comment-13960019
@paul121, @mstenta and I just discussed this in a call and I think this is something we can postpone for now, b/c the security concern @paul121 raised in that d.o issue can be easily remedied without forcing Field Kit to switch over to Authorization Code Grant. That is, we can keep using the Password Credentials Grant, even while adding a redirect url for
farm_client
's Authorization Code. We could do so indefinitely, but I think it makes sense to adopt Authorization Codes and redirects from a UX perspective, whenever we get a chance.The text was updated successfully, but these errors were encountered: