Skip to content

Commit

Permalink
Merge pull request #28 from zitadel/relaystate
Browse files Browse the repository at this point in the history
fix: only require relaystate if redirect binding
  • Loading branch information
livio-a authored Oct 7, 2022
2 parents c3754f6 + 177a407 commit fbd6044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/provider/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func (p *IdentityProvider) ssoHandleFunc(w http.ResponseWriter, r *http.Request)
)

// verify that relayState is provided
checkerInstance.WithValueNotEmptyCheck(
checkerInstance.WithConditionalValueNotEmpty(
func() bool { return authRequestForm.Binding == RedirectBinding },
"relayState",
func() string { return authRequestForm.RelayState },
func() {
Expand Down

0 comments on commit fbd6044

Please sign in to comment.