The application.yml file setup

Create a new application.yml file in the src/main/resources folder with the following content:

server:
port: 8443
ssl:
enabled: true
key-alias: spring
key-store: src/main/resources/saml/keystore.jks
key-store-password: secret

security:
saml2:
metadata-url: https://dev-858930.oktapreview.com/app/exkequgfgcSQUrK1N0h7/sso/saml/metadata

spring:
mvc:
view:
prefix: /WEB-INF/views/
suffix: .jsp

In lines 13-17  (in the spring section), we have migrated the configuration data that we had in the application.properties file into a YML format. You can keep all the preceding configuration same apart from the configurations of metadata-url file. For this, you have to go back to the Okta application that you created and navigate to the Sign On tab. Now, click on the Identity Provider metadata link and copy the link. It will look similar to the one shown previously, with metadata at the end of the URL.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.10.160