Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.27 KB

maven.md

File metadata and controls

29 lines (22 loc) · 1.27 KB

{%- if page.path contains '.adoc' -%}{% assign adoc = true %}{%- endif -%} {%- capture pluginLink %} {%- if adoc -%}https://github.com/oktadev/okta-maven-plugin[Okta Maven Plugin] {%- else -%}Okta Maven Plugin {%- endif -%} {%- endcapture -%} {%- capture docsLink %} {%- if adoc -%}https://developer.okta.com/docs/guides/sign-into-web-app/springboot/create-okta-application/[Create a Spring Boot App] {%- else -%}Create a Spring Boot App {%- endif -%} {%- endcapture -%}

Run the {{ pluginLink }} from your app's folder:

./mvnw com.okta:okta-maven-plugin:register

Answer a few questions (name, email, and company), and it will generate a new Okta developer account for you. If you already have an Okta account registered, use login instead of register.

Then, configure your Spring Boot application to use Okta for authentication:

./mvnw com.okta:okta-maven-plugin:spring-boot

This will set up a new OIDC application for you and write your Okta settings to your src/main/resources/application.properties file.

NOTE: You can also use the Okta Admin Console to create your app. See {{ docsLink }} for more information.