-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Hey @ToWe0815 |
Head branch was pushed to by a user without write access
Hey @buehler |
Did you update to v6? |
# 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
Done, my bad. |
@buehler Is there anything I need to do for this change to be merged? Am I missing something? |
Hey @ToWe0815 Yes, please make sure that the tests are running. Otherwise, I cannot merge it. |
Hey @buehler As far as I can see the tests are failing because of a known vulnerability in the 'BouncyCastle.Cryptography' package: There are already 2 open PRs regarding this issue (among other similar things): Semi-Off topic:
Also I had to execute |
Hey @ToWe0815 |
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.