Skip to content
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

Feat: Support Resource Owner Password Credentials Grant flow #117

Open
kevinboosten opened this issue Aug 27, 2020 · 3 comments
Open

Feat: Support Resource Owner Password Credentials Grant flow #117

kevinboosten opened this issue Aug 27, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@kevinboosten
Copy link

Describe the Feature

Make it possible to authorize with the Authorization Server based on username + password when there's a "trust relationship" between resource owner and the client.
This is most of the time probably not the preferred grant type. But when you need it, it would be nice if we could use it via this plugin :-)

Platform(s) Support Requested

  • Android
  • iOS
  • Web

Describe Preferred Solution

Make it possible to use this library to also authorize based on username + password next to the already available grant types.

Describe Alternatives

  • Use own implementation with HTTP request to the token endpoints of your authorization server.

Related Code

Additional Context

Make password grant flow from underlying OAuth libraries available in Capacitor plugin

@moberwasserlechner moberwasserlechner added the enhancement New feature or request label Aug 27, 2020
@moberwasserlechner
Copy link
Collaborator

Hi, what providers support this flow or with what provider do you plan to use this flow?

@kevinboosten
Copy link
Author

Auth0 and Azure B2C do support this flow.
But at the moment I need it for a client that has its own identity provider. They use the password grant for now, but I can imagine that this will eventually change to Authorization Code + PKCE flow because it's a (trusted) mobile application. Only require a single plugin for both flows, instead of a own http implementation, would obviously be easier at the end :-)

@doublechecker
Copy link

We do also need this. In our app we have a Keycloak instance with idp for google and apple. From UX perspective we decided that users should not be redirected to the Keycloak instance to login with our "in house" user-management but instead login from within the SPA directly.
Looking forward to this feature :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants