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

[Feature Request] Add ROPC support for CCA #3091

Open
neha-bhargava opened this issue Oct 17, 2024 · 0 comments · May be fixed by #3103
Open

[Feature Request] Add ROPC support for CCA #3091

neha-bhargava opened this issue Oct 17, 2024 · 0 comments · May be fixed by #3103
Assignees
Labels
enhancement New feature or request feature request

Comments

@neha-bhargava
Copy link

neha-bhargava commented Oct 17, 2024

Is your feature request related to a problem? Please describe.
Add ROPC flow to Id web for CCA and potentially extend it to use user fic in MISE

Describe the solution you'd like

ClaimsPrincipal user= ClaimsPrincipalFactory.FromUsernamePassword("[email protected]", "pwd");
downstreamApi.CallApiForUser("api", user: user);

Possible design

  • In ClaimsPrincipalFactory add a method to return a ClaimsPrincipal with 2 claims (xms-username and xms-password) based on the values provided.

  • In TokenAcquisition.GetAuthenticationResultForUserAsync, if the user parameter is not null, and has the 2 claims xms-username and xms-password claims, then perform ROPC for CCA as a first step (in the try to still benefit from the client credentials rotation)

Describe alternatives you've considered

Additional context

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

Successfully merging a pull request may close this issue.

2 participants