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(app-security): add idToken provider #4168

Merged
merged 4 commits into from
Jun 13, 2024
Merged

Conversation

Pavel910
Copy link
Collaborator

Changes

This PR adds an idTokenProvider concept to the SecurityProvider in the Admin app. This was necessary to have, because Webiny supports various identity providers, which all work differently, but certain parts of the app, like Websockets, require us to have access to the idToken managed by each individual IDP, in order to attach it to requests.

This PR adds a setIdTokenProvider and a getIdToken methods to the Security context, which makes fetching of token generic for the consumer.

With this PR we've also updated Auth0 React SDK to v2.

How Has This Been Tested?

Manually.

@Pavel910 Pavel910 added this to the 5.40.0 milestone Jun 13, 2024
@Pavel910 Pavel910 self-assigned this Jun 13, 2024
@Pavel910 Pavel910 merged commit 71e514d into next Jun 13, 2024
@Pavel910 Pavel910 changed the title Pavel/feat/id token provider feat(app-security): add idToken provider Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant