question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PoC support for Resource Owner Password Credential Flow

See original GitHub issue

Hello,

I need support for Resource Owner Password Credential Flow (https://www.rfc-editor.org/rfc/rfc6749#section-4.3). oidc-client-ts does not support it… but the changes needed to support it are very small.

I have made it in my OIDC playground, but I have needed to duplicate some classes in my project because they are @internal and cannot be used/extended in client projects. It would be much easier if this support was directly provided by oidc-client-ts. Watch my PoC at https://gitlab.com/javier-sedano/oidc-vue/-/tree/master/src/oidc-client-ts and deployed to “production” at https://jsedano.duckdns.org/oidc-vue/ .

My questions:

  • Are you guys open to receiving such a contribution?
  • How? Fork + PR?

BTW, I know that Resource Owner Password Credential Flow is only secure if the Client Application is fully trusted not to keep the credentials… but in scenarios where the IdP and the Client Application are owned by the same entity (which is my case) it is acceptable (for example, read https://www.rfc-editor.org/rfc/rfc6749#section-1.3.3 or https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow). So I would add the appropriate warning to the readme.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pamapacommented, Nov 22, 2022

will do a release this week

0reactions
jsedano-emobgcommented, Nov 22, 2022

Any plan on when will we have a release including this feature?

The documentation in the README does not match the real functionality if you do npm install oidc-client-ts… because, well, it is not published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign in with resource owner password credentials grant
Support browser-less authentication flows using the resource owner password credential (ROPC) grant.
Read more >
Does Google OAuth2.0 support an OAuth-flow for a Resource ...
it is true that Resource Owner Password Credential Flow is not supported on Google but google suggests you use the Installed Application ...
Read more >
Call Your API Using Resource Owner Password Flow - Auth0
This tutorial will help you call your own API using the Resource Owner Password Flow. If you want to learn how the flow...
Read more >
ROPC Flow in Azure AD to Access SharePoint - YouTube
This video talks about how to use the ROPC OAuth flow in Azure AD to ... of keeping the service account password in...
Read more >
chidov/spring-cloud-security-oauth2-poc - GitHub
Here is how to change service auth server from github to custom one, and we can use Resource Owner Password Credentials to retrieve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found