Federation
Access Token Consumer
Plugin: nevisadmin-plugin-oauth
This step generates an AccessTokenConsumer AuthState which
is able to validate access tokens issued by an OAuth 2.0 Authorization Server / OpenID Provider.
Use this step in the Initial Authentication Flow of a Authentication Realm
to provide a resource server for REST services.
The access token has to be sent as Bearer token in the Authorization header.
The content of the token will be stored in session variables prefixed with oauth2.token.claim..
The sub claim of the access token will be used as user ID for nevisAuth.
This is technically sufficient for authentication.
However, it is recommended to perform additional checks in subsequent steps.
For instance, you may use a nevisIDM User Lookup step to look up a user in nevisIDM.
When the access token is invalid a 403 forbidden will be returned.
This pattern is experimental and it has some limitations.
For instance, it is assumed that the authorization server is running Nevis and
is set up by a OAuth 2.0 Authorization Server / OpenID Provider pattern that is part of this project.
If you need improvements for this pattern, please create a feature request.
On Success
Assign a step to continue with after successfully validating the token.
On Missing Token
Assign a step to continue with when no token was sent.
If nothing is assigned then authentication will fail with an error.
OAuth 2.0 Authorization Server / OpenID Provider
Assign the OAuth 2.0 Authorization Server / OpenID Provider
which has issued the access token.
Note that this step works in combination with Nevis OAuth 2.0 Authorization Server / OpenID Provider
only and the other pattern has to be in the same project.
Apple Login Step
Plugin: nevisadmin-plugin-oauth
Setup social login, using Apple as OpenID Connect provider.
Client ID
ClientID is Identifier provided by Apple when you register Apple as IdP service.
Client Secret
The Client Secret is a JWT token generated by using a private key provided by Apple. Please follow the instructions here.
You can generate the client secret by yourself and configure it here, or upload the Private Key to generate the client secret automatically. Only private key or client secret can be use at the time
Return Path
The callback URI to go to after a successful login with Apple.
This will create an endpoint in your host config.
The URL will be a combination of the Frontend Address of the Virtual Host and the value configured here.
For example, let's assume that you have configured:
- Return Path:
/oidc/apple/ - Frontend Address:
https://nevis.net
Then the URL will be https://nevis.net/oidc/apple/.
Use the exact: prefix to use the given path as-is.
Without this prefix a normal mapping with /* will be generated and thus sub-paths will be accessible as well.
Scope(s)
Select the requested scopes for getting user information from Apple.
The default is email and thus minimal information will be returned.
The scope openid will always be added as Apple uses OpenID Connect.
Virtual Host
Assign a Virtual Host which shall serve as entry point for the callback from social login provider.
In case your host has
- 1 address, that address will be used
- many addresses with
- 1 https, and many http, the https will be used without warning
- mix between http and https, the 1st https will be used with warning
- single scheme (http or https only) the 1st address will be used with warning
E.g.
http://nevis.net
http://nevis-security.net
https://nevis.net
https://nevis-security.net
The https://nevis.net will be used as the host for Apple callback
On Success
The step executed after a successful authentication.
If no step is configured here the process ends with AUTH_DONE.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
On Failure
The step that will be executed if the authentication fails.
If no step is configured here the process ends with AUTH_ERROR.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
Private Key
Private key provided by Apple. Find out more here.
If you upload your private key here and set the Issuer, the pattern will automatically generate the Client Secret.
If you do not want to configure your private key, you have to set the Client Secret instead.
Issuer
The issuer registered claim identifies the principal that issued the client secret.
Since the client secret belongs to your developer team, use your 10-character Team ID associated with your developer account.
Find out more here.
nevisIDM
Choose which nevisIDM instance you want to store the user's information after logged in with social login provider.
Client External ID
The ExtId of the client in nevisIDM that will be used to store the user
On User Not Found
Configure the authentication flow to be executed when no user was found and the email provided by social account does not exist.
The authentication flow must contain the Social Login Create User pattern if a new user shall be created.
Note: Please select scope email and profile for getting user's information from social account.
On User Found
Configure the Authentication Flow in case no user with Subject/ID from social account was found but email does exist in nevisIDM. The Authentication Flow must contain:
Social Login Link Userpattern to link an existing user in IDM with Subject/ID of social account.Social Login Doneto end the social login flow after some other action(s).
Note: Please select scope email and profile for getting user's information from social account.
Claims Request
The claims request parameter. This value is expected to be formatted in JSON and does not accept trailing spaces nor tabs.
User ID Field
Logged userId will automatically get from social account. But you can change the userId by using this field.
Additional Auth Request Parameters
Arbitrary additional request parameters used in the authentication request. The property supports variable substitution.
Example:
[paramName]=[paramValue]
Button Label
Enter the text that should be displayed for the end-user on the social login button, and provide translations for this label on the Authentication Realms.
Facebook Login Step
Plugin: nevisadmin-plugin-oauth
Set up social login, using Facebook as OpenID Connect provider.
Client ID
ClientID is App ID provided by Facebook when you register Facebook as IdP service.
Client Secret
Client Secret is App Secret provided by Facebook when you register Facebook as IdP service.
Return Path
The callback URI to go to after a successful login with Facebook.
This will create an endpoint in your host config.
The URL will be a combination of the Frontend Address of the Virtual Host and the value configured here.
For example, let's assume that you have configured:
- Return Path:
/oidc/facebook/ - Frontend Address:
https://nevis.net
Then the URL will be https://nevis.net/oidc/facebook/.
Use the exact: prefix to use the given path as-is.
Without this prefix a normal mapping with /* will be generated and thus sub-paths will be accessible as well.
Scope(s)
Select the request scopes for getting user information from Facebook.
The default is email and thus minimal information will be returned.
Select public_profile to return additional user information.
Scope offline_access is not supported as Facebook has removed this scope.
Virtual Host
Assign a Virtual Host which shall serve as entry point for the callback from social login provider.
In case your host has
- 1 address, that address will be used
- many addresses with
- 1 https, and many http, the https will be used without warning
- mix between http and https, the 1st https will be used with warning
- single scheme (http or https only) the 1st address will be used with warning
E.g.
http://nevis.net
http://nevis-security.net
https://nevis.net
https://nevis-security.net
The https://nevis.net will be used as the host for Apple callback
On Success
The step executed after a successful authentication.
If no step is configured here the process ends with AUTH_DONE.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
On Failure
The step that will be executed if the authentication fails.
If no step is configured here the process ends with AUTH_ERROR.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
nevisIDM
Choose which nevisIDM instance you want to store the user's information after logged in with social login provider.
Client External ID
The ExtId of the client in nevisIDM that will be used to store the user
On User Not Found
Configure the authentication flow to be executed when no user was found and the email provided by social account does not exist.
The authentication flow must contain the Social Login Create User pattern if a new user shall be created.
Note: Please select scope email and profile for getting user's information from social account.
On User Found
Configure the Authentication Flow in case no user with Subject/ID from social account was found but email does exist in nevisIDM. The Authentication Flow must contain:
Social Login Link Userpattern to link an existing user in IDM with Subject/ID of social account.Social Login Doneto end the social login flow after some other action(s).
Note: Please select scope email and profile for getting user's information from social account.
Claims Request
The claims request parameter. This value is expected to be formatted in JSON and does not accept trailing spaces nor tabs.
User ID Field
Logged userId will automatically get from social account. But you can change the userId by using this field.
Additional Auth Request Parameters
Arbitrary additional request parameters used in the authentication request. The property supports variable substitution.
Example:
[paramName]=[paramValue]
Button Label
Enter the text that should be displayed for the end-user on the social login button, and provide translations for this label on the Authentication Realms.
Generic Social Login Step
Plugin: nevisadmin-plugin-oauth
Use to set up a generic social login, either using OAuth2 or OpenID Connect.
See the Generic Social Login configuration guide for an end-to-end OpenID Connect setup and account-resolution examples.
Provider Type
The provider type of the social account: either OpenID Connect or OAuth2.
Client ID
The identifier provided by the social account when you register with it as the IdP service.
Client Secret
The secret of the client ID that has been set in the OAuth/OpenID Connect configuration of the social account.
The current RelyingParty AuthState requires this value for OpenID Connect. Store secrets using the platform's credential mechanism rather than exposing them in plain-text configuration where possible.
Return Path
The callback URI to go to after a successful login with the social account.
This will create an endpoint in your host config.
The URL will be a combination of the Frontend Address of the Virtual Host and the value configured here.
For example, let's assume that you have configured:
- Return Path:
/oidc/app/ - Frontend Address:
https://nevis.net
Then the URL will be https://nevis.net/oidc/app/.
Use the exact: prefix to use the given path as-is.
Without this prefix a normal mapping with /* will be generated and thus sub-paths will be accessible as well.
Scope(s)
The request scope(s) for getting the user information from the social account. The default value is email.
The scope openid will be added automatically if providerType is set to OpenID Connect.
Scope offline_access for generate refresh token.
Virtual Host
Assign a Virtual Host which shall serve as entry point for the callback from social login provider.
In case your host has
- 1 address, that address will be used
- many addresses with
- 1 https, and many http, the https will be used without warning
- mix between http and https, the 1st https will be used with warning
- single scheme (http or https only) the 1st address will be used with warning
E.g.
http://nevis.net
http://nevis-security.net
https://nevis.net
https://nevis-security.net
The https://nevis.net will be used as the host for Apple callback
On Success
The step executed after a successful authentication.
If no step is configured here the process ends with AUTH_DONE.
In case you change this to your custom step(s),
the generated social-login context is preserved through the custom continuation
chain. The normal generated completion restores the original URL after the chain
finishes. Social Login Done remains available when an explicit terminal step is
required.
On Failure
The step that will be executed if the authentication fails.
If no step is configured here the process ends with AUTH_ERROR.
In case you change this to your custom step(s), configure the desired failure handling explicitly. Do not rely on a successful social-login continuation to handle an authentication error.
Client Secret Method
The method used for authenticating the client at the token endpoint. It can be
either Basic Authentication (client_secret_basic) or POST
(client_secret_post). The default value is Basic Authentication.
The provider's advertised methods are not a substitute for checking the method
configured for the individual client. A mismatch commonly results in an
invalid_client error during the authorization-code exchange.
Response Mode
The mode used for the responses of the server. It can be either Query or Form POST.
The default value is Query.
PKCE
Setting for PKCE in Authorization/Authentication request.
- enabled, the Code Challenge and Code Verifier will be included in the Authorization/Authentication request.
- disabled (default), the Code Challenge and Code Verifier will not be included in the Authorization/Authentication request.
PKCE currently requires client authentication with either client_secret_basic or
client_secret_post; it cannot be used as a replacement for the client secret.
PKCE Secret
For OAuth2 providers, this optionally sets the PKCE code verifier. The value must follow RFC 7636. For OpenID Connect, the RelyingParty AuthState generates and stores the verifier itself, so this setting is not used.
Code Challenge Method
Setting for PKCE Code Challenge Method.
- S256 (default), the Code Challenge will be hashed with SHA-256 and Base64 URL encoded.
- plain, the Code Challenge will be sent in raw format. Use this only when required by the provider.
Provider Endpoint
The provider endpoint that contains the configuration of the OpenID Connect server.
It's required when providerType has the value OpenID Connect.
Authorization Endpoint
The authorization endpoint of the OAuth2 provider.
Required when Provider Type is set to OAuth2.
Token Endpoint
The token endpoint of the OAuth2 server.
It's required when providerType has the value OAuth2.
User Information Endpoint
The user information endpoint of the OAuth2 server.
It's required when providerType has the value OAuth2.
JWKS Endpoint
The JWKS endpoint of the OAuth2 server.
It's optional when Provider Type has the value OAuth2.
nevisIDM
Choose which nevisIDM instance you want to store the user's information after logged in with social login provider.
Client External ID
The ExtId of the client in nevisIDM that will be used to store the user.
On User Not Found
Configure the authentication flow to be executed when no matching nevisIDM user
was found.
The authentication flow must contain the Social Login Create User pattern if a new user shall be created.
This branch means that neither the provider identity nor the configured fallback lookup (normally the e-mail address) found an existing nevisIDM user.
Note: Select scopes and claim mappings that provide the values required by the
configured account-creation flow, commonly email and profile.
On User Found
Configure the authentication flow when no user with the provider subject/ID was found, but the fallback lookup found an existing nevisIDM user.
This branch means that the user is a candidate for account linking; it does not mean that the provider identity has already been linked. The Authentication Flow must contain:
Social Login Link Userto link the existing user with the provider subject/ID.- Any required checks, such as an e-mail TAN, before the link operation.
After the link operation, the normal generated completion restores the original
URL. Use Social Login Done only when an explicit terminal step is needed.
Note: Select scopes and claim mappings that provide the values required by the
configured account-linking flow, commonly email and profile.
Account Linking - User Property
Enter the name of the nevisIDM user property that is used for linking the account.
The property will contain the value of the sub claim of the social login provider.
This pattern will ensure that the property is created in nevisIDM by contributing to the generation of the nevisIDM configuration.
The pattern adds a property definition file to /var/opt/nevisidm/<instance>/conf/import/user_<name>.json.
This file is interpreted by nevisIDM during startup.
Before the May 2025 release, the sanitized pattern name was used for this property. This is not recommended anymore, as the account link will break when the pattern is renamed.
To avoid this problem, it is now recommended to configure this setting. If you are upgrading from a previous version you must use the property name which was used so far.
First Name Claim
The claim that contains the first name of the logged-in user in the social account.
The default value is given_name.
Second Name Claim
The claim that contains the second name of the logged-in user in the social account.
The default value is family_name.
Email Claim
The claim that contains the e-mail of the logged-in user in the social account.
The default value is email.
Subject Claim
The claim that contains the subject of the logged-in user in the social account.
The default value is sub.
Claims Request
The claims request parameter. This value must be a JSON object and must not end with spaces or tabs. Static malformed JSON is rejected during pattern validation. Values containing runtime expressions cannot be fully validated until generation or runtime evaluation.
User ID Field
Logged userId will automatically get from social account. But you can change the userId by using this field.
Additional Auth Request Parameters
Arbitrary additional request parameters used in the authentication request. The property supports variable substitution.
Example:
[paramName]=[paramValue]
Button Label
The text that should be displayed for the end-user on the social login button, and provide translations for this label on the Authentication Realms.
Button CSS class
The css class that apply for the social login button. Ensure that the Login Template used in your realm pattern includes a CSS file which defines the CSS class.
Button Logo Path
The path to logo file of the social login provider. This path is the path of logo file which you which uploaded at Login template in Realm pattern. E.g:
In the zip file the icon with path /webdata/resources/icons/icon.csv, the input is /icons/icon.csv
Google Login Step
Plugin: nevisadmin-plugin-oauth
Set up social login, using Google as OpenID Connect provider.
Client ID
ClientID is Client ID provided by Google when you create a OAUTH 2.0 credential in Google.
Client Secret
Client Secret is Client Secret provided by Google when you create a OAUTH 2.0 credential in Google.
Return Path
The callback URI to go to after a successful login with Google.
This will create an endpoint in your host config.
The URL will be a combination of the Frontend Address of the Virtual Host and the value configured here.
For example, let's assume that you have configured:
- Return Path:
/oidc/google/ - Frontend Address:
https://nevis.net
Then the URL will be https://nevis.net/oidc/google/.
Use the exact: prefix to use the given path as-is.
Without this prefix a normal mapping with /* will be generated and thus sub-paths will be accessible as well.
Virtual Host
Assign a Virtual Host which shall serve as entry point for the callback from social login provider.
In case your host has
- 1 address, that address will be used
- many addresses with
- 1 https, and many http, the https will be used without warning
- mix between http and https, the 1st https will be used with warning
- single scheme (http or https only) the 1st address will be used with warning
E.g.
http://nevis.net
http://nevis-security.net
https://nevis.net
https://nevis-security.net
The https://nevis.net will be used as the host for Apple callback
Scope(s)
Select the request scope(s) for getting user information from Google. Default scopes is email.
Scope openid will be added automatically because Google is implement based on OpenID protocol.
Scope offline_access for generate refresh token. This scope will transfer to access_type=offline request parameter for matching with Google spec
On Success
The step executed after a successful authentication.
If no step is configured here the process ends with AUTH_DONE.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
On Failure
The step that will be executed if the authentication fails.
If no step is configured here the process ends with AUTH_ERROR.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
nevisIDM
Choose which nevisIDM instance you want to store the user's information after logged in with social login provider.
Client External ID
The ExtId of the client in nevisIDM that will be used to store the user
On User Not Found
Configure the authentication flow to be executed when no user was found and the email provided by social account does not exist.
The authentication flow must contain the Social Login Create User pattern if a new user shall be created.
Note: Please select scope email and profile for getting user's information from social account.
On User Found
Configure the Authentication Flow in case no user with Subject/ID from social account was found but email does exist in nevisIDM. The Authentication Flow must contain:
Social Login Link Userpattern to link an existing user in IDM with Subject/ID of social account.Social Login Doneto end the social login flow after some other action(s).
Note: Please select scope email and profile for getting user's information from social account.
Claims Request
The claims request parameter. This value is expected to be formatted in JSON and does not accept trailing spaces nor tabs.
User ID Field
Logged userId will automatically get from social account. But you can change the userId by using this field.
Additional Auth Request Parameters
Arbitrary additional request parameters used in the authentication request. The property supports variable substitution.
Example:
[paramName]=[paramValue]
Button Label
Enter the text that should be displayed for the end-user on the social login button, and provide translations for this label on the Authentication Realms.
Microsoft Login Step
Plugin: nevisadmin-plugin-oauth
Set up social login, using Microsoft as OpenID Connect provider.
Client ID
ClientID is Application (client) ID provided by Microsoft when you create an Application Microsoft.
Client Secret
Client Secret is Client Secret provided by Microsoft when you create an Application Credentials & Secrets in Microsoft.
Return Path
The callback URI to go to after a successful login with Microsoft.
This will create an endpoint in your host config.
The URL will be a combination of the Frontend Address of the Virtual Host and the value configured here.
For example, let's assume that you have configured:
- Return Path:
/oidc/microsoft/ - Frontend Address:
https://nevis.net
Then the URL will be https://nevis.net/oidc/microsoft/.
Use the exact: prefix to use the given path as-is.
Without this prefix a normal mapping with /* will be generated and thus sub-paths will be accessible as well.
Scope(s)
Select the request scope(s) for getting user information from Microsoft. Default scopes is email.
Scope openid will be added automatically because Microsoft is implement based on OpenID protocol.
Scope offline_access for generate refresh token.
Virtual Host
Assign a Virtual Host which shall serve as entry point for the callback from social login provider.
In case your host has
- 1 address, that address will be used
- many addresses with
- 1 https, and many http, the https will be used without warning
- mix between http and https, the 1st https will be used with warning
- single scheme (http or https only) the 1st address will be used with warning
E.g.
http://nevis.net
http://nevis-security.net
https://nevis.net
https://nevis-security.net
The https://nevis.net will be used as the host for Apple callback
On Success
The step executed after a successful authentication.
If no step is configured here the process ends with AUTH_DONE.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.
On Failure
The step that will be executed if the authentication fails.
If no step is configured here the process ends with AUTH_ERROR.
The normal generated completion restores the original URL after the configured
continuation chain finishes. Use Social Login Done only when an explicit
terminal AUTH_DONE or AUTH_ERROR state is required.