➜ ~ curl https://start.spring.io/starter.zip -d dependencies=web,okta -d baseDir=bootiful-oauth | tar -xzvf -
cd bootiful-oauth
mvn com.okta:okta-maven-plugin:setup
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 57642 100 57598 100 44 81123 61 --:--:-- --:--:-- --:--:-- 81071
x bootiful-oauth/
x bootiful-oauth/.mvn/
x bootiful-oauth/.mvn/wrapper/
x bootiful-oauth/.mvn/wrapper/maven-wrapper.jar
x bootiful-oauth/.mvn/wrapper/maven-wrapper.properties
x bootiful-oauth/.mvn/wrapper/MavenWrapperDownloader.java
x bootiful-oauth/mvnw.cmd
x bootiful-oauth/mvnw
x bootiful-oauth/pom.xml
x bootiful-oauth/src/
x bootiful-oauth/src/main/
x bootiful-oauth/src/main/java/
x bootiful-oauth/src/main/java/com/
x bootiful-oauth/src/main/java/com/example/
x bootiful-oauth/src/main/java/com/example/demo/
x bootiful-oauth/src/main/java/com/example/demo/DemoApplication.java
x bootiful-oauth/src/main/resources/
x bootiful-oauth/src/main/resources/application.properties
x bootiful-oauth/src/main/resources/templates/
x bootiful-oauth/src/main/resources/static/
x bootiful-oauth/src/test/
x bootiful-oauth/src/test/java/
x bootiful-oauth/src/test/java/com/
x bootiful-oauth/src/test/java/com/example/
x bootiful-oauth/src/test/java/com/example/demo/
x bootiful-oauth/src/test/java/com/example/demo/DemoApplicationTests.java
x bootiful-oauth/HELP.md
x bootiful-oauth/.gitignore
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- okta-maven-plugin:0.2.0:setup (default-cli) @ demo ---
First name: Matt
Last name: Raible
Email address: [email protected]
Company: Okta
Creating new Okta Organization, this may take a minute:
OrgUrl: https://dev-442263.okta.com
Check your email address to verify your account.
Writing Okta SDK config to: /Users/mraible/.okta/okta.yaml
Configuring a new OIDC, almost done:
Created OIDC application, client-id: 0oa981i40xV6uiDvX4x6
[INFO] Dependency: 'com.okta.spring:okta-spring-boot-starter' found in project.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.725 s
[INFO] Finished at: 2020-04-16T19:00:18-06:00
[INFO] ------------------------------------------------------------------------
Execution time: 24 s.
Created
April 17, 2020 01:01
-
-
Save mraible/9570e53b742836752dcdc7317d16236f to your computer and use it in GitHub Desktop.
Spring Boot + OAuth 2.0 with Okta in 30 seconds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment