OpenID Connect details

OpenID Connect (OIDC) is a simple standardized identity (authentication) layer on top of OAuth 2.0.

After a successful login, the user agent is in possession of an access token and an ID token. The access token looks the same as for plain OAuth2. The ID token is a signed JSON Web Token with info about the user. The ID token only includes the minimum information required by the standard. More information, including the user’s name and email, can be gotten from the userinfo endpoint described in the reference doc:

Userinfo Endpoint.

Discovery and configuration

All you need to know in order to configure your OpenID Connect client to the Feide platform is available through the discovery endpoint:

Client registration

In order to access the Feide APIs, you need to register your application, and obtain the OIDC/OAuth credentials for your application.

You may register your application using the dashboard.

Developer Dashboard

When registering a client, you need to know the redirect URI endpoint of your application.

Registration of new application screenshot

Registration of new application screenshot


In order to use OpenID Connect you need to have the openid scope. This can be selected in the dashboard.

OpenID Connect also defines a few other standard scopes. Of these the profile and email scopes are supported by Feide. Depending on your application, these should also be added to your application in the dashboard.

The application should include openid in the scope parameter of the authorization request. If you are using an OIDC library, this is probably already taken care of.

OpenID Specifications

Supported features

  • Authorization Code flow response_mode: code
  • Implicit grant flow response_mode: id_token token
  • Hybrid flow response_mode: code id_token
  • ID token signed with PKI (RS256)
  • Proof Key for Code Exchange (PKCE) may be used with authorization code flow and hybrid flow. code_challenge_method: S256

Implicit grant flow response_mode: id_token token is also still supported. But due to weak security, it should be avoided for new clients. Existing clients should migrate to authorization code flow with PKCE.

Dynamic registration is not supported.

Requiring a specific authentication level

The application can request a specific authentication level via the optional acr_values parameter. Currently this only works with the Feide login provider, and the only supported value is, which triggers Feide MFA. An organization can also request a specific authentication level for some or all users, see the multifactor authentication deployment guide.

Login hints - bypassing the login discovery page

The default behaviour when a client sends the end user to Feide for authentication is that the user first meets either the account chooser or the ID-provider discovery page.

Sometimes the client may want to let the user bypass the discovery page / accountchooser and go to a specific ID provider. This is possible by using the OpenID login_hint parameter to the authorization endpoint.

The following prerequisites needs to be met to use this functionality:

  • The client owner needs to configure the client to not require user interaction. This can be done using the Developer Dashboard. Uncheck the checkbox «Require user interaction».
  • Consider the security implications of allowing Single Sign-on to automatically login users to your site without user interaction.
  • Make sure that the openid scope is enabled for the client and included in the authentication request. If not, the request is interpreted as a plain OAuth request, and then the login hint functionality is not supported

The login_hint parameter is sent as part of the authentication request to Feide as a query string parameter. The parameter may have one of these values:


Automatically send user to Feide login page with no specific organization preselected. Feide will remember if the user has selected an organization previously.


Automatically send user to Feide login page with the specific organization Uninett. Uninett will then be preselected in the Feide login page.


Automatically send user to Feide login page with the specific organization Uninett. Uninett will then be preselected in the Feide login page. Also specify which user we expect to login. If user tries to login with another account the user will get an warning that the user was not expected, but the userID is not enforced beyond that.


Automatically send user to ID-porten.


Automatically send user to eIDAS (European authentication framework).


Automatically send user to the Identity Provider with entity ID urn:mace:entity via eduGAIN.


Automatically send user to Feide’s OpenIdP (guest accounts).


Automatically send user to Facebook.


Automatically send user to Twitter.


Automatically send user to LinkedIn.

JWT Signing key

The signing key may be obtained here:

ID Token

The ID token is a signed information object representing the authenticated identity of the user. As part of the OpenID Connect standard the ID token is encoded as a JWT, and signed using the JWS standard.

ID Token example:


ID Token JWT decoded

    "iss": "",
    "aud": "5ac8753f-8296-41bf-b985-59d89769005e",
    "sub": "76a7a061-3c55-430d-8ee0-6f82ec42501f",
    "iat": 1449065432,
    "exp": 1449069032,
    "auth_time": 1449065364

The example above shows what the ID token includes when only the openid scope is enabled. All times are in seconds since 1970-01-01 00:00:00 UTC.

Audience - the client ID
Subject - The internal ID of the authenticated user. This ID is stable but opaque, not releasing any additional information about the user.
Issued at - Time issued (in seconds since 1970-01-01T0:0:0 UTC)
Expiration time (in seconds since 1970-01-01T0:0:0 UTC)
Time when the end-user authentication occurred

The attributes acr, at_hash, c_hash and nonce may also be present. See the OIDC standard for info about these.

The client must validate the ID token. In particular, iss has to be and aud has to match the client id. See the OIDC standard for full details about ID Token Validation.

To see what is inside an ID token, the online JWT debugger at is useful.