-
Notifications
You must be signed in to change notification settings - Fork 148
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
allow supplying extra login params to cli.CodeFlow #659
Comments
While I have your attention, it'd be swell to add something like:
as on optino too, no need to keep that window around if javascript is supported/allowed? for example in my implementation it has something like :
|
We would need to create some kind of This way you/we can be flexible in the choices of what we want to be able to configure. Body, hander, path etc. We are open to a PR, it shouldn't be too much work I recon. Just make sure you keep the original function untouched, so we don't have a breaking change. |
That was exactly how I'd implemented it as well. I'll try to put a PR up at some point when I remember she have a few minutes. Cheers |
Preflight Checklist
Describe your problem
Auth0 requires you to send an audience during the login token request. If you don't supply the audience, you will get an "Opaque Token" Doc: https://auth0.com/docs/secure/tokens/access-tokens
These tokens are JWTs without the body, making them useless for assertions on claims in the JWT. I can see no way using the library to accomplish this. I asked in the chat and was asked to file an issue here by "ffo/fforootd"
Describe your ideal solution
I was using cli.CodeFlow, but cli.CodeFlow already adds a handler for "/login". I wanted to supply my own AuthURLHandler. It would have been handy if i could.
Instead I just copied the whole function as it's relatively trivial (10 lines or so) and replced the
http.Handle(loginPath, rp.AuthURLHandler(stateProvider, relyingParty))
call with my own implementationVersion
github.com/zitadel/oidc/v2 v2.12.2
Environment
ZITADEL Cloud
Additional Context
No response
The text was updated successfully, but these errors were encountered: