Skip to content

Commit

Permalink
Merge pull request greenpau#172 from rhul-compsoc/fix-saml-redirect
Browse files Browse the repository at this point in the history
bugfix: Fix SAML redirect code (302, not 200)
  • Loading branch information
greenpau committed Sep 9, 2021
2 parents 4430f27 + 183ebd4 commit dba8ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backends/saml/authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
func (b *Backend) Authenticate(r *requests.Request) error {
r.Response.Code = 400
if r.Upstream.Request.Method != "POST" {
r.Response.Code = 200
r.Response.Code = 302
r.Response.RedirectURL = b.loginURL
return nil
}
Expand Down

0 comments on commit dba8ba1

Please sign in to comment.