-
Notifications
You must be signed in to change notification settings - Fork 3
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(api): jwt verification #339
Conversation
3d09f05
to
9129569
Compare
9129569
to
a83e5cd
Compare
Kudos, SonarCloud Quality Gate passed! |
# Conflicts: # package-lock.json # package.json
e204e7e
to
f21fa1e
Compare
# Conflicts: # package-lock.json
f21fa1e
to
4ee954b
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
29d897a
to
d5d37cc
Compare
# Conflicts: # .github/actions/build-and-deploy-api/action.yml # .github/workflows/next-deployment.yml # apps/api/.env.template # apps/api/src/app/app.module.ts # package-lock.json
d5d37cc
to
0b1f72d
Compare
9b697ff
to
99a715d
Compare
# Conflicts: # libs/api/auth/src/lib/interceptors/auth.interceptor.spec.ts # package-lock.json
libs/api/auth/src/lib/auth-strategies/verify-aadb2c-jwt.strategy.ts
Outdated
Show resolved
Hide resolved
libs/api/auth/src/lib/auth-strategies/verify-aadb2c-jwt.strategy.ts
Outdated
Show resolved
Hide resolved
# Conflicts: # package-lock.json
421f13d
to
0e73192
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Since we have to move away from Azure Web Apps, and cannot rely on the OAuth Proxy provided by it, we need to verify the token ourselves. This PR introduces an auth strategy that verifies the JWT against keys from AADB2C and decodes into an
AuthUser
. The current strategy is now the dev strategy, not verifying the token, but only decoding it. Whenever we move completely to the on-prem system, we have to set the strategy toaadb2c
to run the JWT verify strategy.Checklist:
the Conventional Commits specification.
Coverage > 80% and not less than the current coverage of the main branch.
main
into your feature branch, make sure you have run the latest NX migrations (nx migrate --run-migrations
).