-
Notifications
You must be signed in to change notification settings - Fork 67
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
Update samples to use okta spring boot starter and spring boot 3 #30
Conversation
@@ -1,5 +1,5 @@ | |||
distributionBase=GRADLE_USER_HOME | |||
distributionPath=wrapper/dists | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip |
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.
8.4 is the latest version and would be better for Java 21 compatibility. https://docs.gradle.org/8.4/release-notes.html
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | |
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip |
/** | ||
* Configures our application with Spring Security to restrict access to our API endpoints. | ||
*/ | ||
@Configuration | ||
@EnableWebSecurity |
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.
@EnableWebSecurity
is not needed if it's a Spring Boot app. It's only necessary for Spring apps w/o Boot.
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.
Just added some comments to align with comments made elsewhere about springboot version, can go without 👍
Think we will need auth0-samples/api-quickstarts-tests#6 for the API quickstarts test to run. |
Co-authored-by: Frederik Prijck <[email protected]>
Co-authored-by: Frederik Prijck <[email protected]>
Changes
Updates the servlet and webflux samples to:
A corresponding quickstart article change will also be made.