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.
Definition
OIDC Single Sign-On
Before you start
Before you start
Make sure you have the following ready before setting up OIDC Single Sign-On.
How it works
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.

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.

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

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.

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!
Code Examples
OIDC Configuration
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
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
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
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
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.
Frequently Asked Questions
What's the difference between OIDC and OAuth 2.0?
Does SendSeven support PKCE?
What scopes are available?
How long do tokens last?
Can I refresh an expired token?
What user claims does SendSeven return?
How do I support multi-tenant SSO?
Ready to get started?
Start with 100 test messages. Full access during the trial. No credit card required.