feat(ee): saml idp initiated sso

This commit is contained in:
Lennart Fleischmann
2025-02-13 12:44:36 +01:00
committed by GitHub
parent 55d6efb879
commit 983000d94e
17 changed files with 482 additions and 62 deletions

View File

@ -215,3 +215,22 @@ func NewProfileFlow(debug bool) flowpilot.Flow {
Debug(debug).
MustBuild()
}
func NewTokenExchangeFlow(debug bool) flowpilot.Flow {
return flowpilot.NewFlow("token_exchange").
State(shared.StateThirdParty,
shared.ExchangeToken{}).
State(shared.StateSuccess).
BeforeState(shared.StateSuccess,
shared.IssueSession{},
shared.GetUserData{}).
SubFlows(
CredentialUsageSubFlow,
UserDetailsSubFlow).
AfterState(shared.StatePasscodeConfirmation,
shared.EmailPersistVerifiedStatus{}).
InitialState(shared.StateThirdParty).
ErrorState(shared.StateError).
Debug(debug).
MustBuild()
}