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

Hooked into the Spring OAuth workflow properly, but breaks all other … #195

Merged
merged 1 commit into from
Apr 27, 2016

Conversation

ttomsu
Copy link
Member

@ttomsu ttomsu commented Apr 27, 2016

…security impls.

The major change here is that instead of handbombing (:hand: :bomb:) the auth workflow, we're delegating all of the OAuth2 workflow calls to Spring Security OAuth. This also means that any call to Gate to a protected endpoint (see AuthConfig) will result in a HTTP 302 to /login, which itself HTTP 302's to the auth providers page.

HUGE thank you to @rwinch for many hours of help and debugging.

Questions/Work still to be done:
1.) What's the scripter's workflow
2.) How to hook up the other (and multiple) auth schemes
3.) Plugging in authorization roles ( @jtk54 )

@jtk54, @rwinch PTAL

@spinnaker/reviewers, @rguthriemsft - FYI. We're still working on the google-oauth branch until we have good answers for the questions above.

@@ -35,15 +35,14 @@ import org.springframework.security.web.authentication.AnonymousAuthenticationFi
@ConditionalOnExpression('${auth.anonymous.enabled:false}')
@Configuration
@ConfigurationProperties(prefix = "auth.anonymous")
class AnonymousConfig implements AuthConfig.WebSecurityAugmentor {
class AnonymousConfig {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this configuration still run without the WebSecurityAugmentor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope. The anonymous config will need to be reworked, just like the other ones. Want to take a stab at it?

@jtk54
Copy link
Contributor

jtk54 commented Apr 27, 2016

LGTM after addressing questions.

@ttomsu ttomsu merged commit 7d6340f into spinnaker:google-oauth Apr 27, 2016
@ttomsu ttomsu deleted the google-oauth-sso branch April 27, 2016 16:53
ttomsu pushed a commit to ttomsu/gate that referenced this pull request May 2, 2016
ttomsu pushed a commit that referenced this pull request May 2, 2016
ttomsu pushed a commit to ttomsu/gate that referenced this pull request May 6, 2016
Pranav-b-7 referenced this pull request in OpsMx/gate May 25, 2021
pattern complete log download API added
@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
@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