Keycloak
Download Keycloak and extract the archive.
Setting Up Keycloak
Accessing the Administration Console
- Navigate to Keycloak's bin directory.
- Start the batch file kc.bat with the parameter 'start-dev': kc.bat start-dev.
- Open a web browser and browse to localhost:8080.
- Create an admin account.
- Click the Open Administration Console button and log in with the admin account.
Configuring Keycloak
- In the Administration Console, click on the drop-down menu at the top-left of the page and select Create realm.
- Name the realm, for example, "AMTRealm" and click the Create button.
- Navigate to Clients in the sidebar menu, then click the Create client button.
- In the General settings menu, configure the following:
- Client type: OpenID Connect
- Client ID: AMT
- Name: AMT
- Description: AMT
- Always display in UI: User preference
- Click the Next button.
- Leave the Capability settings as is and click the Next button.
- Configure the following Login settings:
- Root URL: http://localhost:4200
- Home URL: http://localhost:4200
- Valid redirect URIs:
- http://localhost:4200
- http://localhost:4300
- Valid post logout redirect URIs: None
- Web origin: +
- Navigate to Client scopes in the sidebar menu, then click the Create client scope button.
- Configure the following Client scope settings.
- Name: audience_scope
- Description: Scope created to append correct audience to access tokens
- Type: None
- Protocol: OpenID Connect
- Display on consent: On
- Consent screen text: ?
- Include in token scope: Off
- Display Order: ?
- Click the Save button.