Login with SendSeven (OIDC SSO)

Let users sign in with their SendSeven account via OpenID Connect. Implement 'Login with SendSeven' in your app for seamless single sign-on. Setup guide.

~10 minAdvancedMarch 12, 2026

Definition

OIDC Single Sign-On

OpenID Connect (OIDC) 1.0 is an identity layer built on top of OAuth 2.0 that lets users sign in with their SendSeven account. When users authenticate, SendSeven issues a signed JWT ID token containing user claims (email, profile, unique ID). Your app validates the token signature and extracts user information without ever handling passwords. This enables seamless "Login with SendSeven" flows, workspace sharing, and multi-tenant authentication.

Before you start

Before you start

Make sure you have the following ready before setting up OIDC Single Sign-On.

A SendSeven account with Admin or Owner role
An HTTPS callback URL in your application (required for production)
An OpenID Connect client library for your platform (e.g. passport-openidconnect, Authlib, oidc-client-ts)

How it works

1

Open OAuth Apps in Settings

Navigate to Settings → OAuth Apps. If you haven't created any apps yet, you'll see the empty state — "No OAuth applications yet". Click "+ Create App" to get started.

OAuth Applications empty state in SendSeven Settings showing the Create App button
2

Fill in the app details

Give your OAuth app a name and description (shown to users during authorization). Optionally add a Homepage URL and Logo URL, then continue to the next tabs.

Create OAuth App general settings form with name, description, homepage URL and logo URL fields
3

Add your redirect URIs

In the Redirect URIs tab, enter the callback URL(s) where SendSeven will redirect users after authorization. Use https:// for production and http://localhost for development. One URI per line.

Development URIs

For local development, you can use http://localhost:3000/auth/callback. Production URIs must use HTTPS.
Redirect URIs configuration tab for OAuth App in SendSeven with callback URL fields
4

Select scopes

In the Scopes tab, choose the OpenID Connect scopes (OpenID Connect, Profile, Email, Offline Access) and any API permissions your app needs. Then click "Create App" to finalize.

OAuth App scopes selection with OpenID Connect, Profile, Email and API permissions in SendSeven

Done! Copy your Client ID and Secret

Your OAuth app is created. The Client Secret is shown only once — copy it now and store it securely. The popup also includes a Quick Start code snippet with the authorization URL ready to use.

Save your Client Secret now!

The Client Secret is shown only once. Store it securely in environment variables or a secrets manager. Never expose it in client-side code. For SPAs and native apps, use PKCE flow instead.

Code Examples

OIDC Configuration

JavaScript·oidc-config.js
const oidcConfig = {
  issuer: 'https://api.sendseven.com',
  authorizationEndpoint: 'https://app.sendseven.com/oauth/consent',
  tokenEndpoint: 'https://api.sendseven.com/api/v1/oauth-apps/token',
  userInfoEndpoint: 'https://api.sendseven.com/api/v1/oauth-apps/userinfo',
  clientId: process.env.SENDSEVEN_CLIENT_ID,
  clientSecret: process.env.SENDSEVEN_CLIENT_SECRET,
  redirectUri: 'https://your-app.com/auth/callback',
  scope: 'openid profile email'
};

Node.js with passport-openidconnect

JavaScript·server.js (Express + Passport)
const passport = require('passport');
const OpenIDConnectStrategy = require('passport-openidconnect');

passport.use(new OpenIDConnectStrategy({
  issuer: 'https://api.sendseven.com',
  authorizationURL: 'https://app.sendseven.com/oauth/consent',
  tokenURL: 'https://api.sendseven.com/api/v1/oauth-apps/token',
  userInfoURL: 'https://api.sendseven.com/api/v1/oauth-apps/userinfo',
  clientID: process.env.SENDSEVEN_CLIENT_ID,
  clientSecret: process.env.SENDSEVEN_CLIENT_SECRET,
  callbackURL: 'https://your-app.com/auth/callback',
  scope: ['openid', 'profile', 'email']
}, (issuer, profile, done) => {
  const user = {
    sendsevenId: profile.id,
    email: profile.emails?.[0]?.value,
    name: profile.displayName
  };
  return done(null, user);
}));

app.get('/auth/sendseven', passport.authenticate('openidconnect'));
app.get('/auth/callback', passport.authenticate('openidconnect', {
  successRedirect: '/dashboard',
  failureRedirect: '/login'
}));

Python with Authlib

Python·app.py (Flask + Authlib)
from authlib.integrations.flask_client import OAuth

oauth = OAuth(app)
oauth.register(
    name='sendseven',
    client_id=os.getenv('SENDSEVEN_CLIENT_ID'),
    client_secret=os.getenv('SENDSEVEN_CLIENT_SECRET'),
    server_metadata_url='https://api.sendseven.com/.well-known/openid-configuration',
    client_kwargs={'scope': 'openid profile email'}
)

@app.route('/login')
def login():
    redirect_uri = url_for('callback', _external=True)
    return oauth.sendseven.authorize_redirect(redirect_uri)

@app.route('/callback')
def callback():
    token = oauth.sendseven.authorize_access_token()
    user_info = token.get('userinfo')
    session['user'] = {
        'id': user_info['sub'],
        'email': user_info['email'],
        'name': user_info['name']
    }
    return redirect('/dashboard')

Token verification

JavaScript·verify-token.js (jose)
import { createRemoteJWKSet, jwtVerify } from 'jose';

const JWKS = createRemoteJWKSet(
  new URL('https://api.sendseven.com/.well-known/jwks.json')
);

async function verifyIdToken(idToken) {
  const { payload } = await jwtVerify(idToken, JWKS, {
    issuer: 'https://api.sendseven.com',
    audience: process.env.SENDSEVEN_CLIENT_ID
  });

  if (payload.nonce !== expectedNonce) {
    throw new Error('Nonce mismatch');
  }

  return payload; // { sub, email, name, picture, ... }
}

Cache JWKS keys

Use createRemoteJWKSet from the jose library to automatically cache and rotate public keys. This avoids fetching JWKS on every request.

What you get

Single Sign-On

Users authenticate once with SendSeven and gain access to your application. No password handling on your side.

Identity verification

Receive verified user information including email, name, and profile picture via signed JWT ID tokens.

API access tokens

Optionally request access tokens to call SendSeven APIs on behalf of authenticated users.

PKCE support

Proof Key for Code Exchange is fully supported for mobile apps and SPAs. No client secret needed for public clients.

Need help?

Get personalized help from our team

OIDC 1.0

Industry standard

JWT

Cryptographically signed

PKCE

Secure for all clients

Frequently Asked Questions

What's the difference between OIDC and OAuth 2.0?
OAuth 2.0 is an authorization protocol (grants access to resources), while OpenID Connect 1.0 is an authentication protocol built on top of OAuth 2.0 (provides identity via ID tokens). SendSeven supports both.
Does SendSeven support PKCE?
Yes. PKCE (Proof Key for Code Exchange) is fully supported and recommended for all client types, especially mobile apps and SPAs. It prevents authorization code interception attacks.
What scopes are available?
Standard scopes: openid (required), profile, email, offline_access. SendSeven returns user claims like sub (unique ID), email, name, picture, email_verified, and updated_at in ID tokens.
How long do tokens last?
ID tokens have a 1-hour expiry. Access tokens expire based on your grant type and client configuration. Always check the exp claim in the JWT.
Can I refresh an expired token?
Yes, if you requested the offline_access scope during authorization, you'll receive a refresh_token. POST it to the /token endpoint to get a new access_token and id_token.
What user claims does SendSeven return?
ID tokens include: sub (unique user ID), email, email_verified, name, picture, locale, updated_at, and standard JWT claims (iss, aud, exp, iat, nonce).
How do I support multi-tenant SSO?
Use the tenant parameter in the authorize request to direct users to tenant-specific authentication. SendSeven's OIDC can issue tokens scoped to your workspace.

Ready to get started?

Start with 100 test messages. Full access during the trial. No credit card required.

No credit card required
100 test messages included