-
Notifications
You must be signed in to change notification settings - Fork 741
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
Conversation
@@ -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 { |
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.
Will this configuration still run without the WebSecurityAugmentor
?
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.
Nope. The anonymous config will need to be reworked, just like the other ones. Want to take a stab at it?
LGTM after addressing questions. |
pattern complete log download API added
…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.