Skip to content

Commit

Permalink
fix: only require relaystate if redirect binding
Browse files Browse the repository at this point in the history
  • Loading branch information
stebenz committed Oct 6, 2022
1 parent c3754f6 commit 177a407
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 177a407

Please sign in to comment.