-
Notifications
You must be signed in to change notification settings - Fork 1
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
IAM 597 #39
base: main
Are you sure you want to change the base?
IAM 597 #39
Conversation
e0402b1
to
7c336f4
Compare
c16748e
to
4259372
Compare
179654d
to
4e82701
Compare
AuthURL: specs.AuthURL, | ||
TokenURL: specs.TokenURL, | ||
DeviceAuthURL: specs.DeviceAuthURL, | ||
AuthStyle: oauth2.AuthStyleInHeader, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because otherwise the go client will try to hit the token endpoint again when it gets an authorization_pending
response. The reason for this is that if no client authn method is specified, the client will try to hit the token endpoint with another auth method if it gets a token endpoint error. The problem is that it does not parse the error code to validate that the error was caused by a client_authn_failed
.
583dceb
to
f0fb12f
Compare
This commit includes a bunch of changes: - Specify 8443 port - Automatically create the Hydra client if no client_id is provided - Do not start server in go code - Clean up messages - Set log level for login UI to info
- Point to canonical hydra repo - Pin contour version
This is needed because if the method is not specified, the go client will try to hit the token endpoint again, but with a different client authn method if the first one fails. The problem is that the go client does not try to parse the error it got from the provider, which in the device flow most of the time will be authorization_pending.
##################################
To give it a shot:
sudo lxc config set core.https_address :8444 && sudo snap restart lxd
hack/helm/kratos.yaml
dev
Makefile target withmake dev