Use Owlie as an identity provider
Owlie can act as an OpenID Connect provider for your own applications. You register an application as a client, and it sends people to Owlie to sign in. Owlie returns signed tokens that say who the person is and, if you allow it, which groups they belong to.
This is the opposite direction from SSO into Owlie. With Sign-in and SSO, Owlie trusts an external provider such as Okta to sign people in to Owlie. Here, your application trusts Owlie. The two work together: when an application sends someone to Owlie, they sign in with whatever login methods and MFA your organization uses, SSO included.
Owlie issues OAuth 2.1 and OpenID Connect tokens only. It doesn't act as a SAML identity provider.
Managing clients and signing keys needs the idp.manage permission, which Owner and Admin hold.
The IDP section of the admin dashboard has three pages: Overview, Clients and
Signing Keys.
What Owlie supports
| Capability | Support |
|---|---|
| Authorization code flow | Supported, with PKCE (S256 only). PKCE is required for public clients. |
| Refresh tokens | Supported, with rotation. The client must allow the grant and request the offline_access scope. |
| Client credentials | Supported for clients that authenticate with a secret. Returns an access token only. |
| Client authentication | client_secret_basic, client_secret_post, or none for public clients. |
| Token signing | RS256. Public keys are published at the JWKS endpoint. |
| UserInfo | Supported. |
| Token revocation | Refresh tokens only. An access token that was already issued stays valid until it expires. |
| Implicit and hybrid flows | Not supported. The only response type is code. |
| Device code grant | Not supported. |
| Consent screen | Not supported. |
| Logout endpoints | Not supported. |
| Dynamic registration | Not supported. An administrator registers each client. |
| Token introspection | Not supported. |
Endpoints
Each organization is its own issuer. The issuer is the address of your organization's Owlie site,
such as https://acme.owlie.example, and the endpoints are paths under it:
| Endpoint | Path |
|---|---|
| Discovery | /.well-known/openid-configuration |
| JWKS | /oauth/jwks |
| Authorization | /oauth/authorize |
| Token | /oauth/token |
| UserInfo | /oauth/userinfo |
| Revocation | /oauth/revocation |
Most OpenID Connect libraries need only the issuer and read the rest from the discovery document.
Scopes and claims
Every authorization request must include openid. A client can request only the scopes you
allowed for it.
| Scope | What the application receives |
|---|---|
openid | sub, the person's Owlie identity ID. Required. |
profile | name, preferred_username, and picture when the identity has one. |
email | email and email_verified, for a verified sign-in email only. Owlie omits both while the sign-in email is unverified. |
groups | groups, a list of the IDs of the person's Owlie groups. The values are IDs, not group names. |
offline_access | A refresh token, when the client also allows the refresh token grant. |
The email claim is the person's sign-in email, never the
directory email that a connected system writes.
Only an identity that can sign in to Owlie can get tokens. When a person is disabled, blocked from signing in or removed, Owlie refuses to exchange their outstanding authorization codes and refresh tokens.
Register a client
- Go to IDP > Clients and select New client.
- Work through the steps below, selecting Next step after each one.
- On Review, check the summary and select Create client.
- Copy the Client secret (shown once) and the client ID, and give them to the application's owner over a secure channel. Owlie stores only a hash of the secret and can't show it again.
Basics
| Field | What to enter |
|---|---|
| Name | Required. Shown to administrators. You can't change it after you create the client. |
| Application type | Web, SPA, Native or Machine to machine. Defaults to Web. You can't change it later. |
| Token endpoint auth | Client secret (Basic), the default, Client secret (Post), or Public client / none. SPA and Native clients must use Public client / none. |
| Contact email | Optional. |
| Description | Optional, up to 1,000 characters. |
| Logo URI, Policy URI, Terms of service URI | Optional links describing the application. |
Redirect URIs
Add each callback address under Authorization redirects, exactly as the application sends it.
Owlie compares the redirect_uri in a request against this list and accepts exact matches only.
At least one is required. Each must use HTTPS, except localhost and 127.0.0.1 for
development.
Grants and scopes
| Field | Default | Notes |
|---|---|---|
| Grant types | Authorization code, Refresh token | Add Client credentials for a machine-to-machine client. |
| Response types | code | code is the only response type. |
| Allowed scopes | openid, profile | openid is mandatory. Add email, groups or offline_access if the application needs them. |
| Default scopes | openid | Must be a subset of the allowed scopes. |
Token policies
| Field | Default | Allowed values |
|---|---|---|
| Require PKCE | On | Must stay on for SPA and Native clients. |
| Rotate refresh tokens | On | |
| Access token TTL (sec) | 3,600 (1 hour) | 60 to 86,400. |
| Refresh token TTL (sec) | 1,209,600 (14 days) | 300 to 7,776,000, and at least the access token TTL. |
| Authorization code TTL (sec) | 300 | 60 to 300. |
Client secret
The client form does not offer consent screens. Dashboard saves leave consent disabled.
Secret hint is an optional label of up to 32 characters that identifies the secret in the client's Secrets tab. Secret expiration is optional. Once an expiration passes, Owlie refuses the secret.
Registered clients count toward a plan limit on active identity provider clients. See Usage and limits.
Change, disable or delete a client
Select a client under IDP > Clients to edit it. Its tabs are Basics, Redirects, Grants & scopes, Policies and Secrets. Save after a change.
On Policies:
- Disable client blocks new authorization and token requests until you enable the client again.
- Delete under Danger zone removes the client from use and blocks new OAuth flows. You can't undo it. A deleted client is read-only.
Rotate a client secret
A client has one active secret. Rotating creates a new active secret and retires the previous one immediately. There is no grace window, so have the application's owner ready to deploy the new value.
- Open the client's Secrets tab and select Rotate secret.
- Enter a Rotation reason of at least 10 characters. Optionally set Secret hint and Secret expiration.
- Tick both acknowledgements and start the rotation.
- Copy the Client secret (shown once).
The Secrets tab lists each secret with its hint and status: active, retired or revoked. It
never shows a secret's value. Rotations are recorded in the audit log as
idp.client.secret.rotated.
Signing keys
Owlie signs access and ID tokens with an RSA key that belongs to your organization. Applications
verify tokens with the public key from the JWKS endpoint, matched by the kid in the token header.
IDP > Signing Keys lists each key with its Key ID, Status, Activated, Retire at, Accept until and Reason. A key is pending before its start time, active while Owlie signs with it, retiring while it stays published so that tokens it already signed still verify, and retired after that. The page shows Signing key rotation required once the active key is more than 168 hours old.
To rotate:
- Tell the owners of your applications first. Applications that cache the JWKS need to fetch it
again to see the new key. Most libraries do this when they meet an unknown
kid. - Select Rotate key on IDP > Signing Keys.
- Enter a Rotation reason of at least 10 characters. Not before is when the new key starts signing, and defaults to now. Retire previous key at is optional.
- Tick both acknowledgements and select Start rotation.
The retiring key stays in the JWKS for 24 hours, so tokens signed just before the rotation keep
verifying. Rotations are recorded in the audit log as idp.signing_key.rotated.
If the page shows No signing keys, run a rotation to create the first one.