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

Is there a way MSAL be able to accept a token? #951

Open
tazevedo-ciandt opened this issue Jun 10, 2020 · 3 comments
Open

Is there a way MSAL be able to accept a token? #951

tazevedo-ciandt opened this issue Jun 10, 2020 · 3 comments

Comments

@tazevedo-ciandt
Copy link

Hi,
We would like to have MSAL be able to accept a token(s) as an entry and then manage the user.
We are considering programmatically authenticating a B2C using ROPC or something like that as an initial login and then give the tokens returned from the initial authentication to MSAL and have those tokens managed by MSAL and use MSAL for any future authentication.

@oldalton
Copy link
Member

Thanks for bringing this up. I don't think we have this capability in MSAL right now, but we used to have something similar in ADAL where we allowed importing a refresh token: https://github.com/AzureAD/azure-activedirectory-library-for-objc/blob/master/ADAL/src/public/ADAuthenticationContext.h#L513

I believe MSAL could benefit from this as well. We'd happily accept a contribution if you'd like to submit a pull request with these changes.

@cassianodialpad
Copy link

+1. We do need to send the refresh token to our backend server.

@NerevarineRule NerevarineRule self-assigned this May 27, 2021
@dsonigara
Copy link

@cassianodialpad
Can you please help me When my token is expired, how to refresh a token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants