OpenID Connect

Authentication Users Password
OpenID Connect is a protocol based on REST, OAuth 2.0 and JOSE stacks. It is described here:

LL::NG can act as an OpenID Connect Relying Party (RP) towards multiple OpenID Connect Providers (OP). It will get the user identity trough an ID Token, and grab user attributes trough UserInfo endpoint.

As an RP, LL::NG supports a lot of OpenID Connect features:

  • Authorization Code flow
  • Automatic download of JWKS
  • JWT signature verification
  • Access Token Hash verification
  • ID Token validation
  • Get UserInfo as JSON or as JWT
  • Logout on EndSession end point

You can use this authentication module to link your LL::NG server to any OpenID Connect Provider. Here are some examples, witch their specific documentation:

Google France Connect

See OpenIDConnect service configuration chapter.

In General Parameters > Authentication modules, set:

  • Authentication module: OpenID Connect
  • Users module: OpenID Connect
As passwords will not be managed by LL::NG, you can disable menu password module.

Then in General Parameters > Authentication modules > OpenID Connect parameters, you can set:

  • Authentication level: level of authentication to associate to this module
  • Callback GET parameter: name of GET parameter used to intercept callback (default: openidconnectcallback)
  • State session timeout: duration of a state session (used to keep state information between authentication request and authentication response) in seconds (default: 600)

To register LL::NG, you will need to give some information like application name or logo. One of mandatory information is the redirect URL (one or many).

To know this information, just take the portal URL and the Callback GET parameter, for example:

If you use the choice backend, you need to add the choice parameter in redirect URL

After registration, the OP must give you a client ID and a client secret, that will be used to configure the OP in LL::NG.

In the Manager, select node OpenID Connect Providers and click on Add OpenID Connect Provider. Give a technical name (no spaces, no special characters), like "sample-op";

You can then access to the configuration of this OP.


The OP should publish its metadata in a JSON file (see for example Google metadata). Copy the content of this file in the textarea.

If no metadata is available, you need to write them in the textarea. Mandatory fields are:

  • issuer
  • authorization_endpoint
  • token_endpoint
  • userinfo_endpoint

You can also define:

  • jwks_uri
  • endsession_endpoint

Example template:

  "issuer": "",
  "authorization_endpoint": "",
  "token_endpoint": "",
  "userinfo_endpoint": "",

JWKS data

JWKS is a JSON file containing public keys. LL::NG can grab them automatically if jwks_uri is defined in metadata. Else you can paste the content of the JSON file in the textarea.

If the OpenID Connect provider only uses symmetric encryption, JWKS data is not useful.

Exported attributes

Define here the mapping between the LL::NG session content and the fields provided in UserInfo response. The fields are defined in OpenID Connect standard, and depends on the scope requested by LL::NG (see options in next chapter).


So you can define for example:

  • cn ⇒ name
  • sn ⇒ family_name
  • mail ⇒ email
  • uid ⇒ sub


  • Configuration:
    • Configuration endpoint: URL of OP configuration endpoint
    • JWKS data timeout: After this time, LL::NG will do a request to get a fresh version of JWKS data. Set to 0 to disable it.
    • Client ID: Client ID given by OP
    • Client secret: Client secret given by OP
    • Store ID token: Allows one to store the ID token (JWT) inside user session. Don't enable it unless you need to replay this token on an application, or if you need the id_token_hint parameter when using logout.
  • Protocol:
    • Scope: Value of scope parameter (example: openid profile). The openid scope is mandatory.
    • Display: Value of display parameter (example: page)
    • Prompt: Value of prompt parameter (example: consent)
    • Max age: Value of max_age parameter (example: 3600)
    • UI locales: Value of ui_locales parameter (example: en-GB en fr-FR fr)
    • ACR values: Value acr_values parameters (example: loa-1)
    • Token endpoint authentication method: Choice between client_secret_post and client_secret_basic
    • Check JWT signature: Set to 0 to disable JWT signature checking
    • ID Token max age: If defined, LL::NG will check the date of ID token and refuse it if it is too old
    • Use Nonce: If enabled, a nonce will be sent, and verified from the ID Token
  • Display:
    • Display name: Name of the application
    • Logo: Logo of the application