File: osso.md | Updated: 11/15/2025
š NextAuth.js is now part of Better Auth !
Version: v4
On this page
Documentationā
Osso is an open source service that handles SAML authentication against Identity Providers, normalizes profiles, and makes those profiles available to you in an OAuth 2.0 code grant flow.
If you don't yet have an Osso instance, you can use Osso's Demo App for your testing purposes. For documentation on deploying an Osso instance, see https://ossoapp.com/docs/deploy/overview/
Configurationā
You can configure your OAuth Clients on your Osso Admin UI, i.e. https://demo.ossoapp.com/admin/config
SAML SSO differs a bit from OAuth
See Osso's complete configuration and testing documentation at https://ossoapp.com/docs/configure/overview
Optionsā
The Osso Provider comes with a set of default options:
You can override any of the options to suit your own use case.
Exampleā
A full example application is available at https://github.com/enterprise-oss/osso-next-auth-example and https://nextjs-demo.ossoapp.com
import OssoProvider from "next-auth/providers/osso";...providers: [ OssoProvider({ clientId: process.env.OSSO_CLIENT_ID, clientSecret: process.env.OSSO_CLIENT_SECRET, issuer: process.env.OSSO_ISSUER })}...\
note
issuer should be the fully qualified domain āĀ e.g. demo.ossoapp.com
\