Making requests to the Novi OpenID Connect/OAuth2 SSO

Last updated: November 11, 2026

Documentation for 3rd party developers who would like to create an OpenID connect based SSO using the Novi AMS platform.

The Novi SSO feature of the Novi AMS platform can allow you to leverage the Novi AMS user database for authentication to your application. There are two different supported options for single sign on - One based on OAuth2/OpenID Connect, and one legacy option based on the JSON Web Token (JWT) standard.

If you haven't already please start with the Novi SSO overview article - that article will walk you through setting up your SSO client id and give an overview of the claims. Once you've read that, come back here and we'll get you going the OpenID Connect details.

Summary/Endpoint URLs

If you are already familiar with OpenID Connect or are just looking to configure it in a system that supports the standard, you'll likely just need to know the following. All URLs are based off the root URL of the Novi site you are using -

  • Configuration Endpoint - {url}/.well-known/openid-configuration

  • Authorization Endpoint - {url}/oauth/authorize

  • Token Endpoint - {url}/oauth/token

  • User Info Endpoint - {url}/oauth/userinfo

  • End Session Endpoint - {url}/logoutredirect

  • Log Out URL - {url}/log-out

The End Session Endpoint supports OpenID Connect RP-Initiated Logout with an optional redirect back to your application after sign-out. The redirect URI must be present on the SSO client's Valid Redirect URLs (HTTPS only), the same list used for login redirect_uri values.

{url}/log-out remains available for a simple Novi site logout without a partner redirect.

If you are setting up SSO on a 3rd party solution that supports OpenID Connect out of the box, this information combined with the client id/client secret from your SSO Client configuration is likely what you'll need to start.

If you are not familiar with OpenID Connect and/or OAuth2 but are looking to build an SSO against our platform, keep reading below. We suggest some familiarity before attempting to the use the Novi AMS SSO.

OpenId Connect Configuration

Our SSO is compliant with the basic OpenID Connect standard, and as such we have an available OpenId Connect Configuration endpoint that lists our endpoints and supported response types & claims.

You can view the configuration endpoint at the base url for the Novi AMS website you are authenticating against, followed by "/.well-known/openid-configuration".

Ex: https://{your-novi-site-here}/.well-known/openid-configuration

The discovery document includes end_session_endpoint. Use that value when configuring RP-Initiated Logout in a standards-based OIDC client. It is the tenant root URL plus /logoutredirect.

Example field:

"end_session_endpoint": "https://{your-novi-site-here}/logoutredirect"

Making an authentication request to Novi OpenID Connect SSO

After you've setup your SSO client id, the next step will be directing your users to a GET request on the Novi OpenID connect endpoint, including several pieces of information from the SSO client setup in the overview article. The URL for your request will be the base url for the Novi AMS website you are authenticating against, followed by "/oauth/authorize".

Ex: https://{your-novi-site-here}/oauth/authorize

Note: All requests must be made over HTTPS, as HTTP connections will be refused.

Your well-formed request should come with the following query string parameters -

  • client_id - This is the unique GUID created when configuring the SSO client

  • redirect_uri - This is the URL that our Novi SSO endpoint will redirect the user back to once they are authenticated. (Note: Must be a URL that is present in the Valid Redirect URLs on your configured SSO client)

  • scope - The scope you are requesting, most commonly "openid" for SSO.

  • response_type - The response type you would like from the authorization endpoint (essentially which OAuth2 flow you'd like to follow). We highly recommend the authorization code flow unless your application is JavaScript or client side only.

  • state - A string value that will be passed back to your redirect endpoint to help secure against forged requests

  • prompt - If set to "none", we won't redirect the user to the login screen, we'll simply return authorize response to you with "login_required" as the error type

A complete request would look something like this example - https://{your-novi-site-here}/oauth/authorize?client_id=1052B2B7-1207-4CFE-9728-AFE43BF6DD45&redirect_uri=http://www.test.com/signin-novi&scope=openid&response_type=code

Bad Requests

If you submit an invalid request to the Novi SSO endpoint, then users will receive an error response. Invalid requests include the following:

  • Using a Client ID that doesn't exist for the given Novi AMS website

  • Using an invalid response URL (using HTTP or not using a URL that is in the "valid redirect urls" list)

  • Requesting an unsupported scope or response type

Receive, handle, & verify an authorization response

If the user is not currently logged into Novi AMS when your authentication request is received, then they will first be redirected to the Novi AMS login screen. Once they have authenticated with our system, they'll be redirected back to your specified redirect_uri with your requested response type.

Authorization Code Flow (response type = code)

In the code flow, the redirect back to your site will include an authorization code that you can then use to hit our token endpoint to receive the JWT ID token and access token. This authorization code will be good for 60 seconds to exchange for tokens.

Ex: http://www.test.com/signin-novi?code={code-value}&state={state-value}

Implicit Flow (response type = token id_token)

In the implicit flow, the redirect back to your site will include the access token and the id token directly in the query string.

Ex: http://www.test.com/signin-novi?token={access-token}&id_token={jwt-id-token}&state={state-value}

Making an token exchange request

The token endpoint is the base url for the Novi AMS website you are authenticating against, followed by "/oauth/token". You'll make a POST request to this endpoint to exchange the authorization code for tokens.

Ex: https://{your-novi-site-here}/oauth/token

Your well-formed request should come with the following query parameters -

  • client_id - This is the unique GUID created when configuring the SSO client

  • client_secret - The secret key created when configuring the SSO client

  • redirect_uri - This is the URL you included in your authorization code request. (Note: Must be a URL that is present in the Valid Redirect URLs on your configured SSO client AND it must match the redirect_uri from the initial authorization code request)

  • code- The code from the authorization endpoint

  • grant_type - Should be "authorization_code"

Parsing the token responses

In either flow, you'll receive two tokens - an access token and an id token. For now the access token is unused. The ID token is an encoded JWT token. Once decoded, the token will give you the JWT claims that are specified in our SSO overview article.

Once you've received and decoded the token, you can then use the claims to identify the Novi user within your own system. It is also recommended that you use the secret key from the SSO client to verify the signature of the JWT, ensuring that your response request came directly from Novi SSO and not from via a bad actor.

Logging out (RP-Initiated Logout)

To end the member's Novi AMS browser session and optionally return them to your application, send the user to a GET on the End Session Endpoint:

https://{your-novi-site-here}/logoutredirect

This is the end_session_endpoint advertised from /.well-known/openid-configuration.

Novi always signs the user out for this request. An off-site redirect is only performed when all of the following are true:

  • The user was signed in when the request started

  • client_id matches an SSO client for this tenant

  • post_logout_redirect_uri (preferred) or redirect exactly matches a URL on that client's Valid Redirect URLs (HTTPS only; comparison is exact, including casing, path, query, and trailing slash)

  • id_token_hint is a valid RS256 ID token previously issued for that client, with a sub that matches the signed-in member

When the redirect is allowed, the browser is sent to the registered URI, not a caller-mutated variant. If you include state, it is appended to that Location the same way authorize echoes state.

If any check fails, or no redirect is requested, the user is signed out and sent to the tenant Home page.

Prefer /log-out when you only need Novi logout with no partner redirect.

Query parameters:

  • client_id - Required when requesting a post-logout redirect. SSO client GUID.

  • post_logout_redirect_uri - Preferred OIDC post-logout redirect. Must exactly match a Valid Redirect URL on the client (HTTPS).

  • redirect - Legacy alias for the post-logout URI. Ignored when post_logout_redirect_uri is present.

  • id_token_hint - Required for any off-site redirect. The ID token from the earlier token response.

  • state - Optional. Opaque value returned on the post-logout Location when redirect succeeds.

Example, successful partner redirect:

https://{your-novi-site-here}/logoutredirect?client_id=1052B2B7-1207-4CFE-9728-AFE43BF6DD45&post_logout_redirect_uri=https://app.example.com/after-logout&id_token_hint={id_token}&state=abc123

Expected: browser lands on https://app.example.com/after-logout?state=abc123 (or the registered URI with state merged into an existing query). Novi session cleared.

Example, logout only with no partner redirect:

https://{your-novi-site-here}/logoutredirect

Expected: signed out and sent to tenant Home.

When redirect is rejected, the member is still signed out and the browser stays on the tenant Home page. This can happen when:

  • id_token_hint is missing, tampered, HS256, or otherwise invalid

  • id_token_hint sub does not match the signed-in member

  • client_id is unknown, or belongs to a different SSO client

  • post_logout_redirect_uri / redirect is not on Valid Redirect URLs, uses HTTP, or is only a near-match (extra path segment, different query, different port, or trailing-slash mismatch)

  • An anonymous caller requests an off-site redirect

Log Out URL

/log-out signs the user out of the Novi AMS site and returns them within Novi. This URL does not accept post_logout_redirect_uri, redirect, id_token_hint, or state for a partner return URL. For RP-Initiated Logout with an optional return to your application, use /logoutredirect (end_session_endpoint).

User Info Endpoint

Once you've received an access token, you can also make requests to the user info endpoint to get a copy of the same claims as are returned in the id token. This endpoint is implemented to be compliant with the OAuth spec, but is not recommended for use over the id token because there are no additional claims available.

The user info endpoint is the base url for the Novi AMS website you are authenticating against, followed by "/oauth/userinfo".

Ex: https://{your-novi-site-here}/oauth/userinfo

Useful Tools: