OIDC: make callback URL paths deterministic. (#1188)
This commit is contained in:
15 files changed
+51
-28
No files matched your search
@@ -687,7 +687,7 @@ func toAuthMethodProto(in auth.AuthMethod, opt ...handlers.Option) (*pb.AuthMeth
|
||||
}
|
||||
if len(i.GetApiUrl()) > 0 {
|
||||
attrs.ApiUrlPrefix = wrapperspb.String(i.GetApiUrl())
|
||||
attrs.CallbackUrl = fmt.Sprintf("%s/v1/auth-methods/%s:authenticate:callback", i.GetApiUrl(), i.GetPublicId())
|
||||
attrs.CallbackUrl = fmt.Sprintf("%s/v1/auth-methods/oidc:authenticate:callback", i.GetApiUrl())
|
||||
}
|
||||
switch i.GetMaxAge() {
|
||||
case 0:
|
||||
|
||||
Reference in new issue
Block a user