37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
== Secure the first application
|
|
|
|
To secure the first application, you start by registering the application with your {project_name} instance:
|
|
|
|
. Open the {links-admin-console}.
|
|
. Click the word *master* in the top-left corner, then click *myrealm*.
|
|
. Click *Clients*.
|
|
. Click *Create client*
|
|
. Fill in the form with the following values:
|
|
** *Client type*: `OpenID Connect`
|
|
** *Client ID*: `myclient`
|
|
+
|
|
image::add-client-1.png[Add Client]
|
|
. Click *Next*
|
|
. Confirm that *Standard flow* is enabled.
|
|
. Click *Next*.
|
|
. Make these changes under *Login settings*.
|
|
* Set *Valid redirect URIs* to `+https://www.keycloak.org/app/*+`
|
|
* Set *Web origins* to `+https://www.keycloak.org+`
|
|
. Click *Save*.
|
|
|
|
image::add-client-2.png[Update Client]
|
|
|
|
To confirm the client was created successfully, you can use the SPA testing application on the https://www.keycloak.org/app/[Keycloak website].
|
|
|
|
ifeval::[{links-local}==true]
|
|
. Open https://www.keycloak.org/app/.
|
|
. Click *Save* to use the default configuration.
|
|
endif::[]
|
|
|
|
ifeval::[{links-local}!=true]
|
|
. Open https://www.keycloak.org/app/.
|
|
. Change `Keycloak URL` to the URL of your {project_name} instance.
|
|
. Click *Save*.
|
|
endif::[]
|
|
|
|
. Click *Sign in* to authenticate to this application using the {project_name} server you started earlier.
|