Confirm step of a directory source connect link
GET /v1/directory_sources/oauth/confirm: Confirm step of a directory source connect link.
GET /
The authorization_url of a Connect Gusto, BambooHR or Google start. It shows a page naming the organization and environment the directory grant will attach to, with a Continue button. It never redirects to the provider. It sets a short-lived HttpOnly, SameSite=Strict cookie that the form posts back with. An unknown, expired or used state answers directory_source_oauth_state_invalid (400): an HTML page for a browser, JSON otherwise.
- Scope
public- Auth
- None
- Since
- 1.1
Query parameters
Section titled “Query parameters”statestringmax length 256
Headers
Section titled “Headers”
Minor version; defaults to the environment’s pin.OhAuthCat-Versionstring
Responses
Section titled “Responses”- 200 The confirm page.
- 400
<a href="/. Errorerrors/ directory_source_oauth_state_invalid/ "> directory_source_oauth_state_invalid</ a> - 429 Code: rate_limited. Retry-After is set. Error
- 503 Code: service_unavailable. Retry-After is set; writes are paused. Error
- default Any other error, including internal_error. Every code is in the error catalogue. Error
Errors share one shape; see the error code catalogue.
curl -X GET \ "https://api.ohauthcat.com/v1/directory_sources/oauth/confirm"const response = await fetch("https://api.ohauthcat.com/v1/directory_sources/oauth/confirm", { method: "GET",});const data = await response.json();import osimport requests
response = requests.get( "https://api.ohauthcat.com/v1/directory_sources/oauth/confirm",)data = response.json()Response 200: no body.