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(fake-auth): add callback event to fake auth handler #800

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ToWe0815
Copy link

The PR adds a callback event to the fake auth handler to enable the user the manipulation of the created identity before its usage.

A typical use case could be the creation of several mock "users", all having different claims/roles for testing purposes. These "users" are distinguished by having different fake ids, that are getting set via the "x-zitadel-fake-user-id" header when testing typical auth scenarios.

@buehler buehler enabled auto-merge (squash) January 23, 2024 11:52
@buehler
Copy link
Collaborator

buehler commented Jan 23, 2024

Hey @ToWe0815
The tests /linting are failing

auto-merge was automatically disabled January 25, 2024 10:46

Head branch was pushed to by a user without write access

@ToWe0815
Copy link
Author

Hey @buehler
Should be fixed now!

@buehler
Copy link
Collaborator

buehler commented Jan 25, 2024

Did you update to v6?
GitHub says there are merge conflicts

# Conflicts:
#	src/Zitadel/Authentication/Handler/LocalFakeZitadelHandler.cs
#	src/Zitadel/Authentication/Options/LocalFakeZitadelOptions.cs
#	tests/Zitadel.Test/Authentication/ZitadelFakeAuthenticationHandler.Test.cs
#	tests/Zitadel.Test/WebFactories/FakeAuthenticationHandlerWebFactory.cs
@ToWe0815
Copy link
Author

Done, my bad.

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