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

Update samples to use okta spring boot starter and spring boot 3 #30

Merged
merged 12 commits into from
Oct 26, 2023

Conversation

jimmyjames
Copy link
Contributor

Changes

Updates the servlet and webflux samples to:

  • Use the Okta Spring Boot Starter
  • Update to Spring Boot 3

A corresponding quickstart article change will also be made.

@jimmyjames jimmyjames requested a review from a team as a code owner October 24, 2023 00:44
@jimmyjames jimmyjames added the medium Medium review label Oct 24, 2023
@@ -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
Copy link

@mraible mraible Oct 24, 2023

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

Suggested change
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
Copy link

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.

frederikprijck
frederikprijck previously approved these changes Oct 24, 2023
Copy link
Contributor

@frederikprijck frederikprijck left a 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 👍

01-Authorization-MVC/build.gradle Outdated Show resolved Hide resolved
01-Authorization-WebFlux/build.gradle Outdated Show resolved Hide resolved
@jimmyjames
Copy link
Contributor Author

Think we will need auth0-samples/api-quickstarts-tests#6 for the API quickstarts test to run.

@jimmyjames jimmyjames merged commit b6d4229 into master Oct 26, 2023
1 check passed
@jimmyjames jimmyjames deleted the update-samples branch October 26, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Medium review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants