Connect2id server deployment checklist
These are the minimum required steps to setup a Connect2id server for use in production:
Generate a new JSON Web Key (JWK) set for the Connect2id server to cryptographically secure the issued tokens and other objects.
Set the URL which identifies the Connect2id server as an OpenID provider and OAuth 2.0 authorisation server.
Set the URL of the login page for your Connect2id server.
Set the URL of the logout confirmation page if you have one.
Generate the master tokens for the Connect2id server web APIs and save their SHA-256 hashes in the configuration. Each token must consist of at least 32 random characters. On Linux you can generate a token with
pwgen 32and compute its hash with
Script to generate a 32 character token and compute its SHA-256 hash in hex:
#! /bin/sh TOKEN=`pwgen 32 1` echo "Access token: $TOKEN" TOKEN_SHA256=`echo -n $TOKEN | sha256sum` echo "Access token SHA-256: $TOKEN_SHA256"
Set up a database for the Connect2id server to persist its own data, such as client app registrations and long-lived authorisations.
Provide the details of your OpenID claims source(s), for needed for the UserInfo endpoint. The Connect2id server comes with a ready connectors for sourcing user attributes from an LDAP directory or an HTTP endpoint. If you intend to use a different source create your own connector.