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

Authentication/authorization tests #3056

Merged
merged 53 commits into from
Feb 5, 2024

Conversation

apedroferreira
Copy link
Member

@apedroferreira apedroferreira commented Jan 4, 2024

Tests for authentication and authorization, using the new credentials authentication provider that takes username/password combinations (enabled just in test mode in this PR), and some mock users.

Includes some refactors too, I saw many things to improve/fix while implementing tests.

@apedroferreira apedroferreira self-assigned this Jan 4, 2024
@apedroferreira apedroferreira changed the title Auth tests Authentication tests Jan 4, 2024
@apedroferreira

This comment was marked as outdated.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jan 12, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jan 31, 2024
@apedroferreira apedroferreira changed the title Authentication tests Authentication/authorization tests Jan 31, 2024
@@ -98,18 +163,45 @@ export function createAuthHandler(project: ToolpadProject): Router {
tenantId: process.env.TOOLPAD_AZURE_AD_TENANT_ID,
});

const credentialsProvider = CredentialsProvider({
Copy link
Member Author

Choose a reason for hiding this comment

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

I can move the mock results somewhere else maybe, if it feels weird to have them here like this.

@apedroferreira apedroferreira marked this pull request as ready for review January 31, 2024 16:48
@apedroferreira apedroferreira requested a review from a team January 31, 2024 16:48
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 4, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 5, 2024
@apedroferreira apedroferreira enabled auto-merge (squash) February 5, 2024 17:08
@apedroferreira apedroferreira merged commit 3029a95 into mui:master Feb 5, 2024
11 checks passed
@apedroferreira apedroferreira deleted the auth-tests branch February 5, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants