Skip to content

Conversation

whoshuu
Copy link
Contributor

@whoshuu whoshuu commented Jun 22, 2018

It redirects the user to to the Host header's domain whenever they try to use
token auth.

Signed-off-by: Huu Nguyen whoshuu@gmail.com

It redirects the user to to the Host header's domain whenever they try to use
token auth.

Signed-off-by: Huu Nguyen <whoshuu@gmail.com>
@@ -153,6 +162,8 @@ func checkOptions(options map[string]interface{}) (tokenAccessOptions, error) {

opts.realm, opts.issuer, opts.service, opts.rootCertBundle = vals[0], vals[1], vals[2], vals[3]

opts.autoRedirect, _ = options["autoredirect"].(bool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's throw an error if it's not bool type

@davidswu
Copy link
Contributor

closing in favor of #2711

@davidswu davidswu closed this Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants