Skip to content

Auth Server

Arnab Dutta edited this page Jun 14, 2023 · 19 revisions

Overview

The Auth Server menu covers the following important features to configure and manage Auth server.

  • Sessions
  • Server configuration
  • Keys
  • Logging
  • Clients
  • Scopes
  • Enabled Acrs
  • Agama deployment

Sessions

The Janssen Server OP stores user session data in persistence. This screen lists the active session details and the administrator can revoke the sessions of the selected user.

image

Keys

The JWKS is a set of keys containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server.

image

Auth Server Configuration Properties

The auth server configuration properties can be updated using GUI.

image

Logging

Following AS configuration properties can be used to customize AS logging:

  • Log level: Specify the log levels of loggers
  • Log layout: Logging layout used for Jans Authorization Server loggers
  • Enable HTTP Logging: Enable/disable the request/response logging filter. Disabled by default.
  • Disable JDK Logger?: Choose whether to disable JDK loggers
  • Enable Oauth Audit Logging?: enable OAuth Audit Logging

Clients

The logged-in user with appropriate permissions can view, register, edit and delete OIDC clients on auth server using Admin UI.

image

The Client Metadatas are as follows:

Client fields Description
Client name Name of the Client to be presented to the End-User.
Client secret Client Secret. The same Client Secret value MUST NOT be assigned to multiple Clients.
Description Description of the client.
Authn method token endpoint Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, private_key_jwt, and none.
Subject type Subject type requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include pairwise and public.
Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.
Grants List of the OAuth 2.0 Grant Types that the Client is declaring that it will restrict itself to using.
Response types List of the OAuth 2.0 response_type values that the Client is declaring that it will restrict itself to using. If omitted, the default is that the Client will use only the code Response Type.
Active Specifies whether the client is enabled.
Application type Kind of the application. The default, if omitted, is web.
Redirect URIs List of Redirection URI values used by the Client. One of these registered Redirection URI values MUST exactly match the redirect_uri parameter value used in each Authorization Request
Redirect Regex When this field is set then redirect-URI must match with regex.
Scopes List of scopes granted to the client.
Access token type Type of the access token (JWT or reference) generated by the client.
Include claims in id_token The claims will be included in id_token if this field is enabled
Add auth_time to id_token When enabled then the auth_time claim is required in id_token.
Run Introspection Script Before AccessToken As Jwt Creation And Include Claims When this field is enabled then Introspection Script will run before access token generation.
Token binding confirmation method for id_token Specifies the JWT Confirmation Method member name (e.g. tbh) that the Relying Party expects when receiving Token Bound ID Tokens. The presence of this parameter indicates that the Relying Party supports the Token Binding of ID Tokens. If omitted, the default is that the Relying Party does not support the Token Binding of ID Tokens.
Access token additional audiences The client audiences.
Access token lifetime The client-specific access-token expiration.
Refresh token lifetime The client-specific refresh-token expiration.
Default max authn age The default maximum authentication age.
Front channel. logout URI Relying Party (RP) URL that will cause the RP to log itself out when rendered in an iframe by the OP. This is used in the front-channel logout mechanisms, which communicate logout requests from the OP to RPs via the User Agent.
Post logout redirect URI Provide the URLs supplied by the RP to request that the user be redirected to this location after a logout has been performed.
Back channel. logout URI Relying Party (RP) URL that will cause the RP to log itself out when sent a Logout Token by the OP. This is used in the back-channel logout mechanisms, which communicate logout requests directly between the OP and RPs.
Back channel. logout session required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used.
Front channel. logout session required Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used.
Client URI URL of the home page of the Client. The value of this field must point to a valid Web page.
Policy URI URL that the Relying Party Client provides to the End-User to read about how the profile data will be used.
Logo URI URL that references a logo for the Client application.
Terms of service URI URL that the Relying Party Client provides to the End-User to read about the Relying Party's terms of service.
Contacts OpenID connect client contacts list.
Authorized JS origins Specifies authorized JavaScript origins.
Software id Specifies a unique identifier string (UUID) assigned by the client developer or software publisher used by registration endpoints to identify the client software to be dynamically registered.
Software version Specifies a version identifier string for the client software identified by 'software_id'. The value of the 'software_version' should change on any update to the client software identified by the same 'software_id'.
Software statement Specifies a software statement containing client metadata values about the client software as claims. This is a string value containing the entire signed JWT.
CIBA: Token delivery method Specifies how backchannel token will be delivered.
CIBA: Client notification endpoint Client Initiated Backchannel Authentication (CIBA) enables a Client to initiate the authentication of an end-user by means of out-of-band mechanisms. Upon receipt of the notification, the Client makes a request to the token endpoint to obtain the tokens.
CIBA: Require user code param If selected the auth_time claim is included in id_token.
PAR: Require lifetime Represents the lifetime of Pushed Authorisation Request (PAR).
PAR: Require PAR Is Pushed Authorisation Request (PAR) required?
UMA: RPT token type Type of RPT token (JWT or reference).
UMA: Claims redirect URI Array of The Claims Redirect URIs to which the client wishes the authorization server to direct the requesting party's user agent after completing its interaction.
UMA: RPT Modification Script List of Requesting Party Token (RPT) claims scripts.
Client JWKS URI URL for the Client's JSON Web Key Set (JWK) document containing the key(s) that are used for signing requests to the OP. The JWK Set may also contain the Client''s encryption keys(s) that are used by the OP to encrypt the responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is required for all keys in the document to indicate each key's intended usage.
Client JWKS List of JSON Web Key (JWK) - A JSON object that represents a cryptographic key. The members of the object represent properties of the key, including its value.
id_token subject type The subject identifiers in ID tokens.
Persist Authorizations Specifies if the client authorization details are to be persisted. The default value is true.
Allow spontaneous scopes Whether to allow spontaneous scopes for the client.
Spontaneous scope validation regex List of spontaneous scope regular expression.
Spontaneous scopes Spontaneous scopes created using the client.
Initiate Login URI Specifies the URI using the https scheme that the authorization server can call to initiate a login at the client.
Request URIs Provide a list of requests_uri values that are pre-registered by the Client for use at the Authorization Server.
Default ACR Array of default requested Authentication Context Class Reference values that the Authorization Server must use for processing requests from the Client.
Allowed ACRs Allowed ACRs
Default prompt=login If enabled then sets prompt=login to the authorization request, which causes the authorization server to force the user to sign in again before it will show the authorization prompt.
TLS Subject DN String representation of the expected subject distinguished name of the certificate, which the OAuth client will use in mutual TLS authentication.
Is Expirable Client? Specifies whether client is expirable
Client Scripts The custom scripts specific to the client.

Scopes

Scope is a mechanism to limit an application's access to a user's account. An application can request one or more scopes, this information is then presented to the user in the consent screen, and the access token issued to the application will be limited to the scopes granted.

For an OpenID Connect, the scope can be mapped with user claims.

image

Spontaneous scope

Spontaneous scopes are scopes with random part in it which are not known in advance. For example: transaction:4685456787, pis-552fds where 4685456787 or 552fds are generated part of the scope.

Spontaneous scopes are disabled by default and can be enabled per client. The admins cannot create a spontaneous scope. Creation only happens when an authorized client presents a spontaneous scope at the token endpoint. There are the following client properties available during dynamic registration of the client related to spontaneous scopes:

  • allowSpontaneousScopes OPTIONAL, boolean, false by default. Whether spontaneous scopes are allowed for the given client.
  • spontaneousScopes OPTIONAL, array of strings. Regular expressions which should match to scope. If matched scope is allowed. Example: ["^transaction:.+$"]. It matches transaction:245 but not transaction:.

UMA scope

UMA scope can be created using Admin UI but it cannot be modified. If auth server has auto-created UMA scope then it will have creatorType=auto and empty creator Id.

Clone this wiki locally