-
Notifications
You must be signed in to change notification settings - Fork 325
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
Read oauth2 secret from file #293
Read oauth2 secret from file #293
Conversation
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
I also need to add a check that a user does not pass the client_secret and the client_secret_file |
return nil, fmt.Errorf("unable to read oauth2 client secret file %s: %s", rt.config.ClientSecretFile, err) | ||
} | ||
secret = string(data) | ||
changed = secret != rt.secret |
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.
todo: add rlock here
Todo: strip extra blank chars |
Everything so far looks good! |
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
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.
One thing that GitHub won't let me add a comment to. Do we need to add OAuth2 here now that it can read from file?
Yes thanks!!! |
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
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.
Looks great!
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
cc @LeviHarrison
I still need to add tests.
Signed-off-by: Julien Pivotto roidelapluie@inuits.eu