Reference for OpenID authentication
OpenID configuration implements the following requirements:
Outlook 365 E-Mail integration,
When tia® Viewer Core must not display documents before user was authenticated.
A provider name and an registration name have to be choosen:
Parent | Place holder in table below | Best practice |
---|---|---|
|
|
(respective |
|
|
|
Spring security parameters for OAuth2:
Parent | Configuration | Required | Description |
---|---|---|---|
|
| Usually | |
|
| Defines where in the token the username can be found, usually | |
|
| The provider that should be used. Should be | |
|
| The public identification of the application, the ClientId | |
|
| The client secret for the application | |
|
| fixed value | |
|
| fixed value | |
|
| fixed value | |
|
| Usually |
In addition to this configuration following parameter is to be set at instance level:
Parent | Configuration | Required | Default | Description |
---|---|---|---|---|
|
|
|
| |
|
|
|
|
|
Example Outlook 365 OpenID YAML configuration:
spring:
security:
oauth2:
client:
provider:
azure:
issuer-uri: https://login.microsoftonline.com/<tenant>/v2.0
user-name-attribute: name
registration:
tiaviewer:
provider: azure
client-id: <clientId>
client-secret: <clientSecret>
scope:
- openid
- email
- profile
tia:
security:
oidc:
type: authorization_code
instances:
default:
authenticatedActions: all
securityEnabled: true
The redirect URL to enter into Azure Portal has the format:
http(s)://<host>:<port>/login/oauth2/code/<registrationNameFromViewerConfig>
So for the configuration in above example (=> line 10), this would be: