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: add dev login #195

Merged
merged 19 commits into from
May 16, 2023
Merged

feat: add dev login #195

merged 19 commits into from
May 16, 2023

Conversation

timonmasberg
Copy link
Member

@timonmasberg timonmasberg commented May 9, 2023

This PR introduces a Dev Authentication Module in our SPA that developers can use to simply create tokens and setup a user session with preset or custom claims. The Dev Authentication Module will also be used in CI-E2Es, so it is not necessary anymore to have actual Azure AD users in development environments. It is still possible to add Test Users as an Environment variable and serve the API with an OAuth Configuration, as we continue to do for Next Deployment E2Es to validate the correct implementation of Azure Active Directory B2C as OAuth Provider.

This is how the Dev login process locks like:

Screen.Recording.2023-05-09.at.17.58.13.mov

Furthermore, it adds a dev-tokens.md file to the API application, that contains token for our test users to use them directly to authenticate with the API.

Resolves #131

@timonmasberg timonmasberg force-pushed the chore/test-oauth branch 5 times, most recently from 1a0ae84 to 4c3f20f Compare May 9, 2023 22:05
@timonmasberg timonmasberg marked this pull request as ready for review May 10, 2023 08:45
@timonmasberg timonmasberg requested a review from JSPRH May 10, 2023 08:45
@timonmasberg timonmasberg self-assigned this May 10, 2023
JSPRH
JSPRH previously approved these changes May 12, 2023
Copy link
Contributor

@JSPRH JSPRH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing!

package.json Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

93.7% 93.7% Coverage
0.0% 0.0% Duplication

@timonmasberg timonmasberg merged commit 5f551bd into main May 16, 2023
9 checks passed
@timonmasberg timonmasberg deleted the chore/test-oauth branch May 16, 2023 17:13
@timonmasberg
Copy link
Member Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

JWT Tokens for local development
2 participants