Guides
Getting Started

Getting Started with Optare SSO

Welcome to the Optare SSO integration guide. This document will help you get up and running quickly.

Overview

Optare SSO is a standard OpenID Connect (OIDC) Identity Provider. It allows you to authenticate users and authorize access to your applications using a centralized identity.

Prerequisites

  1. Developer Account: You must have an account on the Optare Developer Console.
  2. Client Application: Create a new application in the console to obtain your client_id and client_secret.
  3. Redirect URI: Register the callback URL where your application will receive authentication responses (e.g., http://localhost:3000/api/auth/callback/optare).

Quick Start Steps

1. Configure Your Client

Ensure your application is registered with the correct Redirect URIs. If you are developing locally, remember to add your localhost URL.

2. Choose Your Integration Method

3. Implement the Flow

  1. Redirect the user to the Authorization Endpoint.
  2. Handle the callback to receive the code.
  3. Exchange the code for tokens at the Token Endpoint.
  4. (Optional) Fetch user details from the UserInfo Endpoint.

Key Concepts

  • Scopes: Control what information and access you request. Always start with openid.
  • Organization Context: Optare is multi-tenant. Users authenticate in the context of an organization (organizationId claim).
  • Licenses: You can check which products a user is licensed for using the licenses claim.

Next Steps