mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-29 07:40:07 +08:00
feat(ee): saml idp initiated sso
This commit is contained in:
committed by
GitHub
parent
55d6efb879
commit
983000d94e
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user