-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easily addressable PR feedback #99
Conversation
cli.go
Outdated
|
||
defer func() { | ||
w.Write([]byte(response)) | ||
doneCh <- loginResp{secret, err} | ||
doneCh <- loginResp{secret, nil} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error that was here is the one that gets set on line 150.
path_oidc.go
Outdated
if parts[i] == "v1" && parts[i+1] == "auth" { | ||
return parts[i+2] | ||
} | ||
parts := strings.Split(redirectURI, "/v1/auth/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually...it doesn't work and I restore the old code and revised the test. We only want the immediate next element, not the rest of the path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a couple tweaks but otherwise, all good!
This PR incorporates the PR feedback I've given that is low-risk in addressing. The commit history cleanly describes the changes, it would be best to look one at a time.