Skip to main content

Building on Goal Get It! Accounts

Sign-in with OpenID Connect

Goal Get It! Accounts is an OpenID Connect provider using the authorization code flow. Point your library at the discovery document: https://login.accounts.goalgetit.org/.well-known/openid-configuration. Its current contents:

Sign-in with OpenID Connect
KeyValue
issuerhttps://login.accounts.goalgetit.org
authorization_endpointhttps://login.accounts.goalgetit.org/oauth2/authorize
token_endpointhttps://login.accounts.goalgetit.org/oauth2/token
userinfo_endpointhttps://login.accounts.goalgetit.org/oauth2/userinfo
jwks_urihttps://login.accounts.goalgetit.org/oauth2/jwks.json
revocation_endpointhttps://login.accounts.goalgetit.org/oauth2/revoke
introspection_endpointhttps://login.accounts.goalgetit.org/oauth2/introspect
end_session_endpointhttps://login.accounts.goalgetit.org/logout
response_types_supportedcode
response_modes_supportedquery
grant_types_supportedauthorization_code, client_credentials, refresh_token
subject_types_supportedpublic
scopes_supportedopenid, profile, email, goalid, affiliations, groups, entitlements, offline_access
claims_supportedsub, goal_person_id, goal_username, name, preferred_name, given_name, family_name, preferred_username, email, email_verified, affiliations, groups, entitlements, acr, amr
acr_values_supportedurn:goalgetit:loa:1, urn:goalgetit:loa:2
id_token_signing_alg_values_supportedRS256
token_endpoint_auth_methods_supportedclient_secret_basic, client_secret_post, none
revocation_endpoint_auth_methods_supportedclient_secret_basic, client_secret_post, none
introspection_endpoint_auth_methods_supportedclient_secret_basic, client_secret_post, none
code_challenge_methods_supportedS256
backchannel_logout_supportedtrue
backchannel_logout_session_supportedtrue

Scopes and claims

Each scope releases the claims below, each only when the value exists. The ID token and userinfo carry the same scope claims. sub is always present and is the stable account id: it never changes, even when the Goal ID does.email is always <goal_username>@goalgetit.org, never a personal or recovery address. Every ID token also carries amr and acr.

Scopes and claims
ScopeWhat the person seesClaims
openidSign you in with Goal Get It!sub
profileRead your basic profile detailsname, preferred_name, given_name, family_name, preferred_username
emailRead your Goal Get It email aliasemail, email_verified
goalidRead your Goal ID and Goal Get It! IDgoal_person_id, goal_username
affiliationsRead your affiliation recordsaffiliations
groupsRead the groups you belong togroups
entitlementsRead the Goal Get It! administrative roles you holdentitlements
offline_accessStay signed in to this application without asking againNo claims; allows a refresh token at the code exchange.

Client rules

  • Public clients (browser or mobile apps) must use PKCE with code_challenge_method=S256.
  • Confidential clients authenticate with HTTP Basic (client_secret_basic) or client_secret_post. They may skip PKCE only when Goal Get It! staff registered them that way.
  • Redirect and post-logout redirect URIs are matched exactly and must use https (http only for localhost).
  • Client secrets are rotated by staff with a grace period, during which the old secret still works.
  • Confidential clients may be allowed client_credentials to call Goal Get It! services as themselves, with their own service scopes. Those tokens have no sub, no ID token, and are refused at userinfo.
  • Resource servers check tokens at introspection_endpoint. An application may always check its own tokens; checking another application's tokens needs staff permission. Any unusable token answers { "active": false }.
  • Ask for a fresh sign-in with prompt=login or max_age, and check auth_time, amr, and acr in the ID token.

Token lifetimes

Token lifetimes
TokenDefaultStaff may choose
Access token1 hour5 minutes to 1 hour
ID token1 hour5 minutes to 1 hour
Refresh token family (offline_access)30 days1 hour to 90 days
Service token (client_credentials)1 hour5 minutes, 15 minutes, 30 minutes, 1 hour

Refresh tokens rotate on every use; presenting a used one again ends the whole family. Signing keys rotate with an overlap of 2 hours, so cache the JWKS for at most 5 minutes and fetch it again when you see an unknown kid.

Sign-out

  • Send people to https://login.accounts.goalgetit.org/logout with id_token_hint and a registered post_logout_redirect_uri.
  • With a back-channel logout URL registered, your server is sent a logout token (a JWT with header typ: logout+jwt, the sid from the ID token, and a 2 minutes lifetime) as logout_token=<jwt> whenever a sign-in it holds ends. Verify it against the JWKS and end the matching local session.

Signed server-to-server requests

Account lookups are signed with the integration secret Goal Get It! staff give you. Every request sends these headers:

  • x-ggi-integration-id
  • x-ggi-timestamp
  • x-ggi-nonce
  • x-ggi-content-sha256
  • x-ggi-signature

x-ggi-timestamp is an ISO-8601 time within 5 minutes of ours. x-ggi-nonce is unique per request and may not be reused. x-ggi-content-sha256 is the hex SHA-256 of the raw body. x-ggi-signature is the base64url HMAC-SHA256, keyed with the secret, of:

METHOD\nPATH\nTIMESTAMP\nNONCE\nCONTENT_SHA256

Answers: 401 for missing headers, an unknown integration id, a request from an address that is not allowed, a stale timestamp, a bad signature, or a reused nonce; 400 when the body digest does not match; 403 when the integration is not allowed to use the endpoint; 429 with Retry-After when it sends too many requests. After a secret is rotated, the old one keeps working for the grace period staff chose.

Account lookup

POST https://accounts.goalgetit.org/integrations/accounts/lookup with a JSON body of exactly one of:

{ "goal_person_id": "0001234567" }
{ "goal_username": "jdoe" }

A found account answers 200 with { "ok": true, "account": { ... } }, where the account has subject (the OIDC sub), goal_person_id, goal_username, status, service_type, eligibility, affiliations (type, start and end date), primary_address (full-services accounts only), goal_username_changed_at, and activated_at. It never includes personal or recovery email, names, dates of birth, reset data, or sign-in factors.

Unknown identifiers and accounts that were never activated get the same answer: 404 with { "ok": false, "error": "not_found" }. A malformed body is 400. Limits: 300 requests a minute per address and 600 per integration.

Change notices

An integration allowed to receive change notices can subscribe an https URL to any of these events:

Change notices
TypeMeaningdata
account.activatedAccount activated{ status: "ACTIVE", service_type, affiliation_type }
account.suspendedAccount suspended{ previous_status, status: "SUSPENDED" }
account.reactivatedAccount reactivated{ previous_status, status: "ACTIVE" }
account.closedAccount closed{ status: "INACTIVE", reason: "affiliation_ended", ended_at }
account.goal_id_renamedGoal ID changed{ previous_goal_username, goal_username }
account.service_type_changedService type changed{ previous_service_type, service_type }
account.affiliation_changedAffiliation changed{ change: "added" | "end_date_changed" | "ended" | "sponsorship_extended", affiliation: { type, active, start_date, end_date } }

Each notice is a JSON POST like this one:

{
  "id": "5f0c1f6e-1b2d-4c7a-9a35-0e8d2c6b7f10",
  "type": "account.service_type_changed",
  "occurred_at": "2026-10-27T15:04:05.000Z",
  "subject": "<account id, same as the OIDC sub>",
  "goal_person_id": "0001234567",
  "goal_username": "jdoe",
  "data": {
    "previous_service_type": "FULL_SERVICES",
    "service_type": "BASE_SERVICES"
  }
}

Headers: x-ggi-event-id (the same for every copy of one occurrence, so you can drop duplicates), x-ggi-event-type, x-ggi-timestamp, and x-ggi-signature: the base64url HMAC-SHA256, keyed with the subscription's signing secret, of the timestamp header value, a newline, and the raw body. Refuse timestamps more than 5 minutes old.

Answer with any 2xx to accept. 408, 429, 5xx, and timeouts are retried with growing waits (2, 4, 8, up to 60 minutes) up to 10 tries over about 5 hours; any other answer, including a redirect, ends the delivery.

Directory reads (SCIM 2.0, read-only)

  • GET https://accounts.goalgetit.org/scim/v2/Users lists users, optionally with filter=userName eq "<goal id>" (the only supported filter).
  • GET https://accounts.goalgetit.org/scim/v2/Users/{id} reads one user by account id (the OIDC sub).
  • Authenticate with Authorization: Bearer <integrationId>.<secret> for an integration allowed to read the directory.
  • Paging uses startIndex (from 1) and count (up to 100).
  • Each user has id, externalId (the Goal Get It! ID), userName (the Goal ID), name, active, emails (only the Goal Get It! address, only for full-services accounts), the enterprise extension with employeeNumber, and the urn:goalgetit:scim:schemas:extension:account:1.0 extension with serviceType, status, and eligible.
  • Errors use the SCIM error format: 400 for an unsupported filter, 401 without a valid secret, 403 without permission, 404 for an unknown user, 429 above 300 requests a minute per address or 600 per integration.
  • There are no write methods; changes come from Goal Get It! Accounts itself.

Getting access

SSO applications and integrations are registered by Goal Get It! identity admins. Ask through the Helpdesk request form (opens in a new tab) with what your service needs. You can also read how accounts work.