EN

CAPIT CONNECT

Sign-in for your visitors, without building it yourself

One “Sign in with CAPIT” button on your site: visitors choose Google, Apple, Facebook, LinkedIn, Snapchat or their email address in a CAPIT box showing your name and logo. You receive a verified identity through the OpenID Connect standard.

1 month free, no card needed · Then €5 per month, no commitment: unlimited sign-ins and Jeanne’s assistance included.

Open the console

In three steps

  1. Create your application in the console: name, logo, https redirect addresses.
  2. Copy the identifier and secret into your OpenID Connect library.
  3. Add the button: visitors sign in, you receive their identity.

Sign in with CAPIT

Integration documentation

CAPIT Connect is a standard OpenID Connect provider. Give the discovery address to your library: it finds the endpoints and keys by itself.

Discovery address

https://connect.capit.net/oidc/.well-known/openid-configuration

Endpoints

issuerhttps://connect.capit.net/oidc
authorization_endpointhttps://connect.capit.net/oidc/auth
token_endpointhttps://connect.capit.net/oidc/token
userinfo_endpointhttps://connect.capit.net/oidc/me
jwks_urihttps://connect.capit.net/oidc/jwks
end_session_endpointhttps://connect.capit.net/oidc/session/end
revocation_endpointhttps://connect.capit.net/oidc/token/revocation

Supported flow

Examples

PHP (jumbojett/openid-connect-php)
<?php
require 'vendor/autoload.php';
use Jumbojett\OpenIDConnectClient;

$oidc = new OpenIDConnectClient('https://connect.capit.net/oidc', 'cc_VOTRE_CLIENT_ID', getenv('CAPIT_CONNECT_SECRET'));
$oidc->setRedirectURL('https://votre-site.example/auth/retour');
$oidc->addScope(['openid', 'email', 'profile']);
$oidc->setCodeChallengeMethod('S256');
$oidc->authenticate();                       // redirects to CAPIT Connect, then validates the response
$sub   = $oidc->getVerifiedClaims('sub');    // stable identifier for your site
$email = $oidc->getVerifiedClaims('email');
Node.js (openid-client 6)
import * as client from 'openid-client';

const config = await client.discovery(new URL('https://connect.capit.net/oidc'), 'cc_VOTRE_CLIENT_ID', process.env.CAPIT_CONNECT_SECRET);
// login route
const verifier = client.randomPKCECodeVerifier();
const url = client.buildAuthorizationUrl(config, {
  redirect_uri: 'https://votre-site.example/auth/retour', scope: 'openid email profile',
  code_challenge: await client.calculatePKCECodeChallenge(verifier), code_challenge_method: 'S256',
});
// callback route (keep verifier in the user's session)
const tokens = await client.authorizationCodeGrant(config, currentUrl, { pkceCodeVerifier: verifier });
const { sub, email, given_name } = tokens.claims();
Python (Authlib + Flask)
from authlib.integrations.flask_client import OAuth
oauth = OAuth(app)
oauth.register('capit', client_id='cc_VOTRE_CLIENT_ID', client_secret=os.environ['CAPIT_CONNECT_SECRET'],
               server_metadata_url='https://connect.capit.net/oidc/.well-known/openid-configuration',
               client_kwargs={'scope': 'openid email profile', 'code_challenge_method': 'S256'})

@app.route('/login')
def login():
    return oauth.capit.authorize_redirect('https://votre-site.example/auth/retour')

@app.route('/auth/retour')
def retour():
    user = oauth.capit.authorize_access_token()['userinfo']   # sub, email, given_name
WordPress
Plugin « OpenID Connect Generic Client »
Client ID:              cc_VOTRE_CLIENT_ID
Client Secret Key:      (secret from the console)
OpenID Scope:           openid email profile
Login Endpoint URL:     https://connect.capit.net/oidc/auth
Userinfo Endpoint URL:  https://connect.capit.net/oidc/me
Token Validation URL:   https://connect.capit.net/oidc/token
End Session Endpoint:   https://connect.capit.net/oidc/session/end
Redirect URI to declare in the console: https://votre-site.example/wp-admin/admin-ajax.php?action=openid-connect-authorize

The button

Point this link to the route of your site that starts sign-in (it redirects to CAPIT Connect).

<a class="capit-connect-btn" href="/auth/capit">
  <svg width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><rect width="24" height="24" rx="6" fill="#653b88"/><path d="M15.5 8.2a5 5 0 1 0 0 7.6" fill="none" stroke="#fff" stroke-width="2.2" stroke-linecap="round"/></svg>
  <span>Sign in with CAPIT</span>
</a>
<style>
.capit-connect-btn{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border:1px solid #d6cfe0;border-radius:999px;
  background:#fff;color:#2b1d3a;font:600 15px/1 system-ui,sans-serif;text-decoration:none}
.capit-connect-btn:hover{border-color:#653b88}
</style>

Test page

Each application can allow CAPIT’s test page: one click in the console lets you try the sign-in box before writing any code. Without a subscription, only the test page works.

Security

Jeanne’s assistance

Jeanne answers your integration questions with the best available AI model; she sees your applications’ settings (never the secrets) and their latest errors. Included in the subscription, up to €1 of cost per month.

Personal data

Your site only receives the identifier unique to your application, the email address and the first name, after the visitor agrees. CAPIT acts as your site’s processor for authentication; you remain the controller of the data you receive.

Terms

Open the console

Delete your shared account?

This deletion is permanent and affects your account on all group websites: CAPIT.NET, its services, Affection.org and AffectionPlus.com. Your access and API keys will be revoked. Your Chat and Chatbot workspaces will be suspended. Service data cleanup then continues in the background.

Cancel your ongoing subscriptions before deleting your account. Deleting an account does not cancel subscriptions.