Skip to content
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

Multi-auth with X509 and OAuth2 #203

Merged
merged 1 commit into from
May 3, 2016

Conversation

ttomsu
Copy link
Member

@ttomsu ttomsu commented May 3, 2016

static String emailFromSubjectAlternativeName(X509Certificate cert) {
cert.getSubjectAlternativeNames().find {
it.find { it.toString() == RFC822_NAME_ID }
}?.get(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the side effects if this returns null?

Copy link
Member Author

Choose a reason for hiding this comment

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

token.principal is used - see L51

Copy link
Contributor

Choose a reason for hiding this comment

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

Hah, got it.

@jtk54
Copy link
Contributor

jtk54 commented May 3, 2016

LGTM. Hopefully we can make configuring this multi-auth cleaner in the future while still leveraging spring-security...

@jtk54 jtk54 merged commit 85734eb into spinnaker:google-oauth May 3, 2016
@ttomsu ttomsu deleted the google-oauth-multi-2 branch May 9, 2016 16:53
Pranav-b-7 referenced this pull request in OpsMx/gate May 25, 2021
OP-5952 : Added new autopilot endpoints
@spinnakerbot spinnakerbot mentioned this pull request Jun 28, 2021
@spinnakerbot spinnakerbot mentioned this pull request Jul 6, 2021
@spinnakerbot spinnakerbot mentioned this pull request Oct 12, 2022
@spinnakerbot spinnakerbot mentioned this pull request Nov 16, 2022
kirangodishala pushed a commit to kirangodishala/gate that referenced this pull request May 23, 2023
@spinnakerbot spinnakerbot mentioned this pull request May 9, 2024
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.

2 participants