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

removed SecurityConfiguration #3

Merged
merged 2 commits into from
Nov 22, 2019
Merged

removed SecurityConfiguration #3

merged 2 commits into from
Nov 22, 2019

Conversation

moksamedia
Copy link

Removed the SecurityConfiguration.java file, also lower cased the package name.

@@ -1,3 +1,2 @@
okta.oauth2.issuer=https://dev-820159.okta.com/oauth2/default
okta.oauth2.clientId=0oa1ec63zpvcYtLGj357
okta.oauth2.clientSecret=qwmW0BXLlqWwPdrwOKHNigNGbM21whD3wjOaOucU
Copy link

Choose a reason for hiding this comment

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

@moksamedia Why did you remove the client secret? Was that intentional?

I know Spring Security 5.2 added support for PKCE, which makes it possible to do auth code flow without a secret. However, it doesn't work with our starter when I last tried it.

Copy link
Author

Choose a reason for hiding this comment

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

It seems to be working for me without it. That's why I removed it. I just double-checked it. Can you try it to verify?

Copy link

Choose a reason for hiding this comment

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

If I remove it and try locally, I get a 401 in the browser instead of a redirect. I'll add it back in.

Screen Shot 2019-11-22 at 11 56 14 AM

Copy link
Author

Choose a reason for hiding this comment

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

Ooops. Sorry. I tested it as a resource server, not as OAuth2 Login. Written too many of the resource server tutorials.

@mraible mraible merged commit a97fa70 into oktadev:master Nov 22, 2019
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