Skip to content

Commit 7a95321

Browse files
committed
fix: discover oidc signing algs
1 parent fe3e366 commit 7a95321

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

api/oidc.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ func NewOIDC(conf *config.Configuration, db *database.GormDatabase, userChangeNo
3535
}
3636
cookieHandler := httphelper.NewCookieHandler(cookieKey, cookieKey, cookieHandlerOpt...)
3737

38-
opts := []rp.Option{rp.WithCookieHandler(cookieHandler), rp.WithPKCE(cookieHandler)}
38+
opts := []rp.Option{
39+
rp.WithCookieHandler(cookieHandler),
40+
rp.WithPKCE(cookieHandler),
41+
rp.WithSigningAlgsFromDiscovery(),
42+
}
3943

4044
provider, err := rp.NewRelyingPartyOIDC(
4145
context.Background(),

0 commit comments

Comments
 (0)