Skip to content

Commit 651d98e

Browse files
committed
fix: enable IDP initiated SAML logins
Should probably help with logging into the system initiated from the SAML apps Google drawer. Signed-off-by: Artem Chernyshev <[email protected]>
1 parent 951c0de commit 651d98e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/backend/saml/saml.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ func NewHandler(state state.State, cfg *specs.AuthConfigSpec_SAML, logger *zap.L
3838
}
3939

4040
opts := samlsp.Options{
41-
URL: *rootURL,
42-
IDPMetadata: idpMetadata,
43-
LogoutBindings: []string{saml.HTTPPostBinding},
41+
URL: *rootURL,
42+
IDPMetadata: idpMetadata,
43+
LogoutBindings: []string{saml.HTTPPostBinding},
44+
AllowIDPInitiated: true,
4445
}
4546

4647
serviceProvider := samlsp.DefaultServiceProvider(opts)

0 commit comments

Comments
 (0)