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:
| Key | Value |
|---|---|
| issuer | https://login.accounts.goalgetit.org |
| authorization_endpoint | https://login.accounts.goalgetit.org/oauth2/authorize |
| token_endpoint | https://login.accounts.goalgetit.org/oauth2/token |
| userinfo_endpoint | https://login.accounts.goalgetit.org/oauth2/userinfo |
| jwks_uri | https://login.accounts.goalgetit.org/oauth2/jwks.json |
| revocation_endpoint | https://login.accounts.goalgetit.org/oauth2/revoke |
| introspection_endpoint | https://login.accounts.goalgetit.org/oauth2/introspect |
| end_session_endpoint | https://login.accounts.goalgetit.org/logout |
| response_types_supported | code |
| response_modes_supported | query |
| grant_types_supported | authorization_code, client_credentials, refresh_token |
| subject_types_supported | public |
| scopes_supported | openid, profile, email, goalid, affiliations, groups, entitlements, offline_access |
| claims_supported | sub, goal_person_id, goal_username, name, preferred_name, given_name, family_name, preferred_username, email, email_verified, affiliations, groups, entitlements, acr, amr |
| acr_values_supported | urn:goalgetit:loa:1, urn:goalgetit:loa:2 |
| id_token_signing_alg_values_supported | RS256 |
| token_endpoint_auth_methods_supported | client_secret_basic, client_secret_post, none |
| revocation_endpoint_auth_methods_supported | client_secret_basic, client_secret_post, none |
| introspection_endpoint_auth_methods_supported | client_secret_basic, client_secret_post, none |
| code_challenge_methods_supported | S256 |
| backchannel_logout_supported | true |
| backchannel_logout_session_supported | true |
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.
| Scope | What the person sees | Claims |
|---|---|---|
| openid | Sign you in with Goal Get It! | sub |
| profile | Read your basic profile details | name, preferred_name, given_name, family_name, preferred_username |
| Read your Goal Get It email alias | email, email_verified | |
| goalid | Read your Goal ID and Goal Get It! ID | goal_person_id, goal_username |
| affiliations | Read your affiliation records | affiliations |
| groups | Read the groups you belong to | groups |
| entitlements | Read the Goal Get It! administrative roles you hold | entitlements |
| offline_access | Stay signed in to this application without asking again | No 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) orclient_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_credentialsto call Goal Get It! services as themselves, with their own service scopes. Those tokens have nosub, 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=loginormax_age, and checkauth_time,amr, andacrin the ID token.
Token lifetimes
| Token | Default | Staff may choose |
|---|---|---|
| Access token | 1 hour | 5 minutes to 1 hour |
| ID token | 1 hour | 5 minutes to 1 hour |
| Refresh token family (offline_access) | 30 days | 1 hour to 90 days |
| Service token (client_credentials) | 1 hour | 5 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/logoutwithid_token_hintand a registeredpost_logout_redirect_uri. - With a back-channel logout URL registered, your server is sent a logout token (a JWT with header
typ: logout+jwt, thesidfrom the ID token, and a 2 minutes lifetime) aslogout_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-idx-ggi-timestampx-ggi-noncex-ggi-content-sha256x-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:
| Type | Meaning | data |
|---|---|---|
| account.activated | Account activated | { status: "ACTIVE", service_type, affiliation_type } |
| account.suspended | Account suspended | { previous_status, status: "SUSPENDED" } |
| account.reactivated | Account reactivated | { previous_status, status: "ACTIVE" } |
| account.closed | Account closed | { status: "INACTIVE", reason: "affiliation_ended", ended_at } |
| account.goal_id_renamed | Goal ID changed | { previous_goal_username, goal_username } |
| account.service_type_changed | Service type changed | { previous_service_type, service_type } |
| account.affiliation_changed | Affiliation 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/Userslists users, optionally withfilter=userName eq "<goal id>"(the only supported filter).GET https://accounts.goalgetit.org/scim/v2/Users/{id}reads one user by account id (the OIDCsub).- Authenticate with
Authorization: Bearer <integrationId>.<secret>for an integration allowed to read the directory. - Paging uses
startIndex(from 1) andcount(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 withemployeeNumber, and theurn:goalgetit:scim:schemas:extension:account:1.0extension withserviceType,status, andeligible. - 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.
