@workos/mcp-docs-server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/.docs/organized/changelogs/workos-platform.json +277 -0
  2. package/.docs/organized/docs/admin-portal/_navigation.mdx +16 -0
  3. package/.docs/organized/docs/admin-portal/custom-branding.mdx +111 -0
  4. package/.docs/organized/docs/admin-portal/example-apps.mdx +46 -0
  5. package/.docs/organized/docs/admin-portal/index.mdx +240 -0
  6. package/.docs/organized/docs/audit-logs/_navigation.mdx +22 -0
  7. package/.docs/organized/docs/audit-logs/admin-portal.mdx +20 -0
  8. package/.docs/organized/docs/audit-logs/editing-events.mdx +27 -0
  9. package/.docs/organized/docs/audit-logs/exporting-events.mdx +29 -0
  10. package/.docs/organized/docs/audit-logs/index.mdx +110 -0
  11. package/.docs/organized/docs/audit-logs/log-streams.mdx +56 -0
  12. package/.docs/organized/docs/audit-logs/metadata-schema.mdx +21 -0
  13. package/.docs/organized/docs/custom-domains/_navigation.mdx +16 -0
  14. package/.docs/organized/docs/custom-domains/admin-portal.mdx +38 -0
  15. package/.docs/organized/docs/custom-domains/auth-api.mdx +59 -0
  16. package/.docs/organized/docs/custom-domains/authkit.mdx +36 -0
  17. package/.docs/organized/docs/custom-domains/email.mdx +41 -0
  18. package/.docs/organized/docs/custom-domains/index.mdx +19 -0
  19. package/.docs/organized/docs/dashboard.mdx +244 -0
  20. package/.docs/organized/docs/demo/_navigation.mdx +26 -0
  21. package/.docs/organized/docs/demo/accordion.mdx +34 -0
  22. package/.docs/organized/docs/demo/checklist.mdx +33 -0
  23. package/.docs/organized/docs/demo/code-block.mdx +185 -0
  24. package/.docs/organized/docs/demo/definition-list.mdx +35 -0
  25. package/.docs/organized/docs/demo/index.mdx +7 -0
  26. package/.docs/organized/docs/demo/punctuation.mdx +37 -0
  27. package/.docs/organized/docs/demo/replacements.mdx +26 -0
  28. package/.docs/organized/docs/demo/table.mdx +26 -0
  29. package/.docs/organized/docs/demo/tabs.mdx +17 -0
  30. package/.docs/organized/docs/directory-sync/_navigation.mdx +28 -0
  31. package/.docs/organized/docs/directory-sync/attributes.mdx +209 -0
  32. package/.docs/organized/docs/directory-sync/example-apps.mdx +46 -0
  33. package/.docs/organized/docs/directory-sync/handle-inactive-users.mdx +52 -0
  34. package/.docs/organized/docs/directory-sync/identity-provider-role-assignment.mdx +134 -0
  35. package/.docs/organized/docs/directory-sync/index.mdx +107 -0
  36. package/.docs/organized/docs/directory-sync/quick-start.mdx +129 -0
  37. package/.docs/organized/docs/directory-sync/understanding-events.mdx +209 -0
  38. package/.docs/organized/docs/domain-verification/_navigation.mdx +10 -0
  39. package/.docs/organized/docs/domain-verification/api.mdx +60 -0
  40. package/.docs/organized/docs/domain-verification/index.mdx +67 -0
  41. package/.docs/organized/docs/email.mdx +109 -0
  42. package/.docs/organized/docs/events/_navigation.mdx +22 -0
  43. package/.docs/organized/docs/events/data-syncing/data-reconciliation.mdx +56 -0
  44. package/.docs/organized/docs/events/data-syncing/events-api.mdx +114 -0
  45. package/.docs/organized/docs/events/data-syncing/index.mdx +66 -0
  46. package/.docs/organized/docs/events/data-syncing/webhooks.mdx +173 -0
  47. package/.docs/organized/docs/events/index.mdx +783 -0
  48. package/.docs/organized/docs/events/observability/datadog.mdx +76 -0
  49. package/.docs/organized/docs/fga/_navigation.mdx +64 -0
  50. package/.docs/organized/docs/fga/identity-provider-sessions.mdx +68 -0
  51. package/.docs/organized/docs/fga/index.mdx +60 -0
  52. package/.docs/organized/docs/fga/local-development.mdx +155 -0
  53. package/.docs/organized/docs/fga/modeling/abac.mdx +107 -0
  54. package/.docs/organized/docs/fga/modeling/blocklist.mdx +84 -0
  55. package/.docs/organized/docs/fga/modeling/conditional-roles.mdx +99 -0
  56. package/.docs/organized/docs/fga/modeling/custom-roles.mdx +90 -0
  57. package/.docs/organized/docs/fga/modeling/entitlements.mdx +127 -0
  58. package/.docs/organized/docs/fga/modeling/managed-service-provider.mdx +131 -0
  59. package/.docs/organized/docs/fga/modeling/org-roles-and-permissions.mdx +95 -0
  60. package/.docs/organized/docs/fga/modeling/policy-context.mdx +231 -0
  61. package/.docs/organized/docs/fga/modeling/public-access.mdx +61 -0
  62. package/.docs/organized/docs/fga/modeling/shareable-content.mdx +106 -0
  63. package/.docs/organized/docs/fga/modeling/superusers.mdx +74 -0
  64. package/.docs/organized/docs/fga/modeling/user-groups.mdx +92 -0
  65. package/.docs/organized/docs/fga/operations-usage.mdx +104 -0
  66. package/.docs/organized/docs/fga/playground.mdx +12 -0
  67. package/.docs/organized/docs/fga/policies.mdx +462 -0
  68. package/.docs/organized/docs/fga/query-language.mdx +112 -0
  69. package/.docs/organized/docs/fga/quick-start.mdx +174 -0
  70. package/.docs/organized/docs/fga/resources.mdx +92 -0
  71. package/.docs/organized/docs/fga/schema-management.mdx +224 -0
  72. package/.docs/organized/docs/fga/schema.mdx +388 -0
  73. package/.docs/organized/docs/fga/warrant-tokens.mdx +44 -0
  74. package/.docs/organized/docs/fga/warrants.mdx +92 -0
  75. package/.docs/organized/docs/glossary.mdx +184 -0
  76. package/.docs/organized/docs/integrations/_navigation.mdx +6 -0
  77. package/.docs/organized/docs/integrations/access-people-hr.mdx +87 -0
  78. package/.docs/organized/docs/integrations/adp-oidc.mdx +103 -0
  79. package/.docs/organized/docs/integrations/apple.mdx +169 -0
  80. package/.docs/organized/docs/integrations/auth0-directory-sync.mdx +78 -0
  81. package/.docs/organized/docs/integrations/auth0-enterprise-connection.mdx +92 -0
  82. package/.docs/organized/docs/integrations/auth0-saml.mdx +81 -0
  83. package/.docs/organized/docs/integrations/aws-cognito.mdx +81 -0
  84. package/.docs/organized/docs/integrations/bamboohr.mdx +90 -0
  85. package/.docs/organized/docs/integrations/breathe-hr.mdx +89 -0
  86. package/.docs/organized/docs/integrations/bubble.mdx +129 -0
  87. package/.docs/organized/docs/integrations/cas-saml.mdx +65 -0
  88. package/.docs/organized/docs/integrations/cezanne.mdx +74 -0
  89. package/.docs/organized/docs/integrations/classlink-saml.mdx +100 -0
  90. package/.docs/organized/docs/integrations/cloudflare-saml.mdx +164 -0
  91. package/.docs/organized/docs/integrations/cyberark-saml.mdx +138 -0
  92. package/.docs/organized/docs/integrations/cyberark-scim.mdx +100 -0
  93. package/.docs/organized/docs/integrations/duo-saml.mdx +127 -0
  94. package/.docs/organized/docs/integrations/entra-id-saml.mdx +156 -0
  95. package/.docs/organized/docs/integrations/entra-id-scim.mdx +218 -0
  96. package/.docs/organized/docs/integrations/firebase.mdx +98 -0
  97. package/.docs/organized/docs/integrations/fourth.mdx +66 -0
  98. package/.docs/organized/docs/integrations/github-oauth.mdx +85 -0
  99. package/.docs/organized/docs/integrations/gitlab-oauth.mdx +81 -0
  100. package/.docs/organized/docs/integrations/google-directory-sync.mdx +86 -0
  101. package/.docs/organized/docs/integrations/google-oauth.mdx +173 -0
  102. package/.docs/organized/docs/integrations/google-saml.mdx +135 -0
  103. package/.docs/organized/docs/integrations/hibob.mdx +98 -0
  104. package/.docs/organized/docs/integrations/jumpcloud-saml.mdx +96 -0
  105. package/.docs/organized/docs/integrations/jumpcloud-scim.mdx +106 -0
  106. package/.docs/organized/docs/integrations/keycloak-saml.mdx +128 -0
  107. package/.docs/organized/docs/integrations/lastpass-saml.mdx +134 -0
  108. package/.docs/organized/docs/integrations/linkedin-oauth.mdx +77 -0
  109. package/.docs/organized/docs/integrations/login-gov-oidc.mdx +103 -0
  110. package/.docs/organized/docs/integrations/microsoft-ad-fs-saml.mdx +96 -0
  111. package/.docs/organized/docs/integrations/microsoft-oauth.mdx +101 -0
  112. package/.docs/organized/docs/integrations/miniorange-saml.mdx +124 -0
  113. package/.docs/organized/docs/integrations/net-iq-saml.mdx +75 -0
  114. package/.docs/organized/docs/integrations/next-auth.mdx +257 -0
  115. package/.docs/organized/docs/integrations/oidc.mdx +64 -0
  116. package/.docs/organized/docs/integrations/okta-saml.mdx +144 -0
  117. package/.docs/organized/docs/integrations/okta-scim.mdx +210 -0
  118. package/.docs/organized/docs/integrations/onelogin-saml.mdx +131 -0
  119. package/.docs/organized/docs/integrations/onelogin-scim.mdx +150 -0
  120. package/.docs/organized/docs/integrations/oracle-saml.mdx +76 -0
  121. package/.docs/organized/docs/integrations/pingfederate-saml.mdx +103 -0
  122. package/.docs/organized/docs/integrations/pingfederate-scim.mdx +150 -0
  123. package/.docs/organized/docs/integrations/pingone-saml.mdx +86 -0
  124. package/.docs/organized/docs/integrations/react-native-expo.mdx +93 -0
  125. package/.docs/organized/docs/integrations/rippling-saml.mdx +174 -0
  126. package/.docs/organized/docs/integrations/rippling-scim.mdx +148 -0
  127. package/.docs/organized/docs/integrations/salesforce-saml.mdx +143 -0
  128. package/.docs/organized/docs/integrations/saml.mdx +64 -0
  129. package/.docs/organized/docs/integrations/scim.mdx +64 -0
  130. package/.docs/organized/docs/integrations/sftp.mdx +150 -0
  131. package/.docs/organized/docs/integrations/shibboleth-generic-saml.mdx +84 -0
  132. package/.docs/organized/docs/integrations/shibboleth-unsolicited-saml.mdx +84 -0
  133. package/.docs/organized/docs/integrations/simple-saml-php.mdx +78 -0
  134. package/.docs/organized/docs/integrations/slack-oauth.mdx +102 -0
  135. package/.docs/organized/docs/integrations/supabase.mdx +68 -0
  136. package/.docs/organized/docs/integrations/vmware-saml.mdx +100 -0
  137. package/.docs/organized/docs/integrations/workday.mdx +156 -0
  138. package/.docs/organized/docs/integrations/xero-oauth.mdx +83 -0
  139. package/.docs/organized/docs/magic-link/_navigation.mdx +16 -0
  140. package/.docs/organized/docs/magic-link/example-apps.mdx +46 -0
  141. package/.docs/organized/docs/magic-link/index.mdx +199 -0
  142. package/.docs/organized/docs/magic-link/launch-checklist.mdx +27 -0
  143. package/.docs/organized/docs/mfa/_navigation.mdx +18 -0
  144. package/.docs/organized/docs/mfa/example-apps.mdx +46 -0
  145. package/.docs/organized/docs/mfa/index.mdx +140 -0
  146. package/.docs/organized/docs/mfa/ux/enrollment.mdx +74 -0
  147. package/.docs/organized/docs/mfa/ux/sign-in.mdx +30 -0
  148. package/.docs/organized/docs/migrate/_navigation.mdx +6 -0
  149. package/.docs/organized/docs/migrate/auth0.mdx +98 -0
  150. package/.docs/organized/docs/migrate/aws-cognito.mdx +115 -0
  151. package/.docs/organized/docs/migrate/clerk.mdx +106 -0
  152. package/.docs/organized/docs/migrate/firebase.mdx +80 -0
  153. package/.docs/organized/docs/migrate/other-services.mdx +179 -0
  154. package/.docs/organized/docs/migrate/standalone-sso.mdx +105 -0
  155. package/.docs/organized/docs/on-prem-deployment.mdx +119 -0
  156. package/.docs/organized/docs/postman.mdx +90 -0
  157. package/.docs/organized/docs/reference/_navigation.mdx +527 -0
  158. package/.docs/organized/docs/reference/admin-portal/index.mdx +6 -0
  159. package/.docs/organized/docs/reference/admin-portal/portal-link/generate.mdx +268 -0
  160. package/.docs/organized/docs/reference/admin-portal/portal-link/index.mdx +15 -0
  161. package/.docs/organized/docs/reference/admin-portal/provider-icons/index.mdx +52 -0
  162. package/.docs/organized/docs/reference/api-keys.mdx +22 -0
  163. package/.docs/organized/docs/reference/audit-logs/audit-log-export.mdx +239 -0
  164. package/.docs/organized/docs/reference/audit-logs/audit-log-schema.mdx +69 -0
  165. package/.docs/organized/docs/reference/audit-logs/create-event.mdx +673 -0
  166. package/.docs/organized/docs/reference/audit-logs/create-export.mdx +308 -0
  167. package/.docs/organized/docs/reference/audit-logs/create-schema.mdx +95 -0
  168. package/.docs/organized/docs/reference/audit-logs/get-export.mdx +117 -0
  169. package/.docs/organized/docs/reference/audit-logs/get-retention.mdx +34 -0
  170. package/.docs/organized/docs/reference/audit-logs/index.mdx +6 -0
  171. package/.docs/organized/docs/reference/audit-logs/list-actions.mdx +40 -0
  172. package/.docs/organized/docs/reference/audit-logs/list-schemas.mdx +40 -0
  173. package/.docs/organized/docs/reference/audit-logs/set-retention.mdx +39 -0
  174. package/.docs/organized/docs/reference/client-libraries.mdx +19 -0
  175. package/.docs/organized/docs/reference/directory-sync/directory/delete.mdx +90 -0
  176. package/.docs/organized/docs/reference/directory-sync/directory/get.mdx +105 -0
  177. package/.docs/organized/docs/reference/directory-sync/directory/index.mdx +385 -0
  178. package/.docs/organized/docs/reference/directory-sync/directory/list.mdx +281 -0
  179. package/.docs/organized/docs/reference/directory-sync/directory-group/get.mdx +105 -0
  180. package/.docs/organized/docs/reference/directory-sync/directory-group/index.mdx +277 -0
  181. package/.docs/organized/docs/reference/directory-sync/directory-group/list.mdx +295 -0
  182. package/.docs/organized/docs/reference/directory-sync/directory-user/get.mdx +112 -0
  183. package/.docs/organized/docs/reference/directory-sync/directory-user/index.mdx +470 -0
  184. package/.docs/organized/docs/reference/directory-sync/directory-user/list.mdx +304 -0
  185. package/.docs/organized/docs/reference/directory-sync/index.mdx +10 -0
  186. package/.docs/organized/docs/reference/domain-verification/create.mdx +38 -0
  187. package/.docs/organized/docs/reference/domain-verification/get.mdx +32 -0
  188. package/.docs/organized/docs/reference/domain-verification/index.mdx +84 -0
  189. package/.docs/organized/docs/reference/domain-verification/verify.mdx +36 -0
  190. package/.docs/organized/docs/reference/errors.mdx +30 -0
  191. package/.docs/organized/docs/reference/events/index.mdx +9 -0
  192. package/.docs/organized/docs/reference/events/list.mdx +246 -0
  193. package/.docs/organized/docs/reference/fga/batch-check.mdx +277 -0
  194. package/.docs/organized/docs/reference/fga/check.mdx +563 -0
  195. package/.docs/organized/docs/reference/fga/index.mdx +6 -0
  196. package/.docs/organized/docs/reference/fga/policy/create.mdx +27 -0
  197. package/.docs/organized/docs/reference/fga/policy/delete.mdx +18 -0
  198. package/.docs/organized/docs/reference/fga/policy/get.mdx +23 -0
  199. package/.docs/organized/docs/reference/fga/policy/index.mdx +52 -0
  200. package/.docs/organized/docs/reference/fga/policy/list.mdx +41 -0
  201. package/.docs/organized/docs/reference/fga/policy/update.mdx +26 -0
  202. package/.docs/organized/docs/reference/fga/query.mdx +375 -0
  203. package/.docs/organized/docs/reference/fga/resource/batch-write.mdx +175 -0
  204. package/.docs/organized/docs/reference/fga/resource/create.mdx +130 -0
  205. package/.docs/organized/docs/reference/fga/resource/delete.mdx +86 -0
  206. package/.docs/organized/docs/reference/fga/resource/get.mdx +88 -0
  207. package/.docs/organized/docs/reference/fga/resource/index.mdx +98 -0
  208. package/.docs/organized/docs/reference/fga/resource/list.mdx +188 -0
  209. package/.docs/organized/docs/reference/fga/resource/update.mdx +115 -0
  210. package/.docs/organized/docs/reference/fga/resource-type/apply.mdx +35 -0
  211. package/.docs/organized/docs/reference/fga/resource-type/create.mdx +24 -0
  212. package/.docs/organized/docs/reference/fga/resource-type/delete.mdx +22 -0
  213. package/.docs/organized/docs/reference/fga/resource-type/get.mdx +23 -0
  214. package/.docs/organized/docs/reference/fga/resource-type/index.mdx +68 -0
  215. package/.docs/organized/docs/reference/fga/resource-type/list.mdx +36 -0
  216. package/.docs/organized/docs/reference/fga/resource-type/update.mdx +23 -0
  217. package/.docs/organized/docs/reference/fga/schema/apply.mdx +42 -0
  218. package/.docs/organized/docs/reference/fga/schema/get.mdx +24 -0
  219. package/.docs/organized/docs/reference/fga/schema/index.mdx +39 -0
  220. package/.docs/organized/docs/reference/fga/warrant/batch-write.mdx +226 -0
  221. package/.docs/organized/docs/reference/fga/warrant/create.mdx +215 -0
  222. package/.docs/organized/docs/reference/fga/warrant/delete.mdx +212 -0
  223. package/.docs/organized/docs/reference/fga/warrant/index.mdx +186 -0
  224. package/.docs/organized/docs/reference/fga/warrant/list.mdx +282 -0
  225. package/.docs/organized/docs/reference/idempotency.mdx +21 -0
  226. package/.docs/organized/docs/reference/index.mdx +194 -0
  227. package/.docs/organized/docs/reference/magic-link/index.mdx +8 -0
  228. package/.docs/organized/docs/reference/magic-link/passwordless-session/create.mdx +268 -0
  229. package/.docs/organized/docs/reference/magic-link/passwordless-session/index.mdx +203 -0
  230. package/.docs/organized/docs/reference/magic-link/passwordless-session/send-email.mdx +158 -0
  231. package/.docs/organized/docs/reference/mfa/authentication-challenge.mdx +217 -0
  232. package/.docs/organized/docs/reference/mfa/authentication-factor.mdx +381 -0
  233. package/.docs/organized/docs/reference/mfa/challenge-factor.mdx +170 -0
  234. package/.docs/organized/docs/reference/mfa/delete-factor.mdx +93 -0
  235. package/.docs/organized/docs/reference/mfa/enroll-factor.mdx +241 -0
  236. package/.docs/organized/docs/reference/mfa/get-factor.mdx +108 -0
  237. package/.docs/organized/docs/reference/mfa/index.mdx +8 -0
  238. package/.docs/organized/docs/reference/mfa/verify-challenge.mdx +228 -0
  239. package/.docs/organized/docs/reference/organization/create.mdx +216 -0
  240. package/.docs/organized/docs/reference/organization/delete.mdx +89 -0
  241. package/.docs/organized/docs/reference/organization/get-by-external-id.mdx +40 -0
  242. package/.docs/organized/docs/reference/organization/get.mdx +104 -0
  243. package/.docs/organized/docs/reference/organization/index.mdx +274 -0
  244. package/.docs/organized/docs/reference/organization/list.mdx +258 -0
  245. package/.docs/organized/docs/reference/organization/update.mdx +236 -0
  246. package/.docs/organized/docs/reference/organization-domain.mdx +189 -0
  247. package/.docs/organized/docs/reference/pagination.mdx +244 -0
  248. package/.docs/organized/docs/reference/radar/attempts/create.mdx +115 -0
  249. package/.docs/organized/docs/reference/radar/attempts/index.mdx +7 -0
  250. package/.docs/organized/docs/reference/radar/attempts/update.mdx +34 -0
  251. package/.docs/organized/docs/reference/radar/index.mdx +8 -0
  252. package/.docs/organized/docs/reference/radar/lists/delete.mdx +36 -0
  253. package/.docs/organized/docs/reference/radar/lists/index.mdx +7 -0
  254. package/.docs/organized/docs/reference/radar/lists/update.mdx +36 -0
  255. package/.docs/organized/docs/reference/rate-limits.mdx +50 -0
  256. package/.docs/organized/docs/reference/roles/index.mdx +268 -0
  257. package/.docs/organized/docs/reference/roles/list-for-organization.mdx +152 -0
  258. package/.docs/organized/docs/reference/sso/connection/delete.mdx +89 -0
  259. package/.docs/organized/docs/reference/sso/connection/get.mdx +104 -0
  260. package/.docs/organized/docs/reference/sso/connection/index.mdx +388 -0
  261. package/.docs/organized/docs/reference/sso/connection/list.mdx +320 -0
  262. package/.docs/organized/docs/reference/sso/get-authorization-url/error-codes.mdx +28 -0
  263. package/.docs/organized/docs/reference/sso/get-authorization-url/index.mdx +434 -0
  264. package/.docs/organized/docs/reference/sso/get-authorization-url/redirect-uri.mdx +21 -0
  265. package/.docs/organized/docs/reference/sso/index.mdx +8 -0
  266. package/.docs/organized/docs/reference/sso/logout/authorize.mdx +47 -0
  267. package/.docs/organized/docs/reference/sso/logout/index.mdx +14 -0
  268. package/.docs/organized/docs/reference/sso/logout/redirect.mdx +32 -0
  269. package/.docs/organized/docs/reference/sso/profile/get-profile-and-token.mdx +229 -0
  270. package/.docs/organized/docs/reference/sso/profile/get-user-profile.mdx +127 -0
  271. package/.docs/organized/docs/reference/sso/profile/index.mdx +364 -0
  272. package/.docs/organized/docs/reference/testing.mdx +8 -0
  273. package/.docs/organized/docs/reference/user-management/access-token/index.mdx +13 -0
  274. package/.docs/organized/docs/reference/user-management/authentication/code.mdx +448 -0
  275. package/.docs/organized/docs/reference/user-management/authentication/email-verification.mdx +359 -0
  276. package/.docs/organized/docs/reference/user-management/authentication/get-authorization-url/error-codes.mdx +25 -0
  277. package/.docs/organized/docs/reference/user-management/authentication/get-authorization-url/index.mdx +425 -0
  278. package/.docs/organized/docs/reference/user-management/authentication/get-authorization-url/pkce.mdx +9 -0
  279. package/.docs/organized/docs/reference/user-management/authentication/get-authorization-url/redirect-uri.mdx +23 -0
  280. package/.docs/organized/docs/reference/user-management/authentication/index.mdx +66 -0
  281. package/.docs/organized/docs/reference/user-management/authentication/magic-auth.mdx +353 -0
  282. package/.docs/organized/docs/reference/user-management/authentication/organization-selection.mdx +349 -0
  283. package/.docs/organized/docs/reference/user-management/authentication/password.mdx +350 -0
  284. package/.docs/organized/docs/reference/user-management/authentication/refresh-and-seal-session-data.mdx +57 -0
  285. package/.docs/organized/docs/reference/user-management/authentication/refresh-token.mdx +381 -0
  286. package/.docs/organized/docs/reference/user-management/authentication/session-cookie.mdx +79 -0
  287. package/.docs/organized/docs/reference/user-management/authentication/totp.mdx +369 -0
  288. package/.docs/organized/docs/reference/user-management/authentication-errors/email-verification-required-error.mdx +42 -0
  289. package/.docs/organized/docs/reference/user-management/authentication-errors/index.mdx +20 -0
  290. package/.docs/organized/docs/reference/user-management/authentication-errors/mfa-challenge-error.mdx +44 -0
  291. package/.docs/organized/docs/reference/user-management/authentication-errors/mfa-enrollment-error.mdx +37 -0
  292. package/.docs/organized/docs/reference/user-management/authentication-errors/organization-authentication-required-error.mdx +68 -0
  293. package/.docs/organized/docs/reference/user-management/authentication-errors/organization-selection-error.mdx +44 -0
  294. package/.docs/organized/docs/reference/user-management/authentication-errors/sso-required-error.mdx +51 -0
  295. package/.docs/organized/docs/reference/user-management/email-verification/get.mdx +88 -0
  296. package/.docs/organized/docs/reference/user-management/email-verification/index.mdx +227 -0
  297. package/.docs/organized/docs/reference/user-management/identity/index.mdx +74 -0
  298. package/.docs/organized/docs/reference/user-management/identity/list.mdx +52 -0
  299. package/.docs/organized/docs/reference/user-management/index.mdx +13 -0
  300. package/.docs/organized/docs/reference/user-management/invitation/accept.mdx +39 -0
  301. package/.docs/organized/docs/reference/user-management/invitation/find-by-token.mdx +87 -0
  302. package/.docs/organized/docs/reference/user-management/invitation/get.mdx +87 -0
  303. package/.docs/organized/docs/reference/user-management/invitation/index.mdx +374 -0
  304. package/.docs/organized/docs/reference/user-management/invitation/list.mdx +247 -0
  305. package/.docs/organized/docs/reference/user-management/invitation/revoke.mdx +90 -0
  306. package/.docs/organized/docs/reference/user-management/invitation/send.mdx +230 -0
  307. package/.docs/organized/docs/reference/user-management/logout/get-logout-url-from-session-cookie.mdx +52 -0
  308. package/.docs/organized/docs/reference/user-management/logout/get-logout-url.mdx +147 -0
  309. package/.docs/organized/docs/reference/user-management/logout/index.mdx +26 -0
  310. package/.docs/organized/docs/reference/user-management/magic-auth/create.mdx +148 -0
  311. package/.docs/organized/docs/reference/user-management/magic-auth/get.mdx +88 -0
  312. package/.docs/organized/docs/reference/user-management/magic-auth/index.mdx +225 -0
  313. package/.docs/organized/docs/reference/user-management/mfa/authentication-challenge.mdx +194 -0
  314. package/.docs/organized/docs/reference/user-management/mfa/authentication-factor.mdx +324 -0
  315. package/.docs/organized/docs/reference/user-management/mfa/enroll-auth-factor.mdx +296 -0
  316. package/.docs/organized/docs/reference/user-management/mfa/index.mdx +5 -0
  317. package/.docs/organized/docs/reference/user-management/mfa/list-auth-factors.mdx +194 -0
  318. package/.docs/organized/docs/reference/user-management/organization-membership/create.mdx +155 -0
  319. package/.docs/organized/docs/reference/user-management/organization-membership/deactivate.mdx +106 -0
  320. package/.docs/organized/docs/reference/user-management/organization-membership/delete.mdx +76 -0
  321. package/.docs/organized/docs/reference/user-management/organization-membership/get.mdx +95 -0
  322. package/.docs/organized/docs/reference/user-management/organization-membership/index.mdx +265 -0
  323. package/.docs/organized/docs/reference/user-management/organization-membership/list.mdx +291 -0
  324. package/.docs/organized/docs/reference/user-management/organization-membership/reactivate.mdx +106 -0
  325. package/.docs/organized/docs/reference/user-management/organization-membership/update.mdx +119 -0
  326. package/.docs/organized/docs/reference/user-management/password-reset/create.mdx +108 -0
  327. package/.docs/organized/docs/reference/user-management/password-reset/get.mdx +88 -0
  328. package/.docs/organized/docs/reference/user-management/password-reset/index.mdx +227 -0
  329. package/.docs/organized/docs/reference/user-management/password-reset/reset-password.mdx +144 -0
  330. package/.docs/organized/docs/reference/user-management/session-helpers/authenticate.mdx +176 -0
  331. package/.docs/organized/docs/reference/user-management/session-helpers/get-logout-url.mdx +42 -0
  332. package/.docs/organized/docs/reference/user-management/session-helpers/index.mdx +14 -0
  333. package/.docs/organized/docs/reference/user-management/session-helpers/load-sealed-session.mdx +105 -0
  334. package/.docs/organized/docs/reference/user-management/session-helpers/refresh.mdx +213 -0
  335. package/.docs/organized/docs/reference/user-management/session-tokens/access-token.mdx +90 -0
  336. package/.docs/organized/docs/reference/user-management/session-tokens/index.mdx +5 -0
  337. package/.docs/organized/docs/reference/user-management/session-tokens/jwks.mdx +110 -0
  338. package/.docs/organized/docs/reference/user-management/session-tokens/refresh-token.mdx +8 -0
  339. package/.docs/organized/docs/reference/user-management/user/create.mdx +327 -0
  340. package/.docs/organized/docs/reference/user-management/user/delete.mdx +76 -0
  341. package/.docs/organized/docs/reference/user-management/user/get-by-external-id.mdx +39 -0
  342. package/.docs/organized/docs/reference/user-management/user/get.mdx +103 -0
  343. package/.docs/organized/docs/reference/user-management/user/index.mdx +322 -0
  344. package/.docs/organized/docs/reference/user-management/user/list.mdx +260 -0
  345. package/.docs/organized/docs/reference/user-management/user/update.mdx +344 -0
  346. package/.docs/organized/docs/reference/vault/index.mdx +6 -0
  347. package/.docs/organized/docs/reference/vault/key/create-data-key.mdx +106 -0
  348. package/.docs/organized/docs/reference/vault/key/decrypt-data-key.mdx +84 -0
  349. package/.docs/organized/docs/reference/vault/key/decrypt-data.mdx +52 -0
  350. package/.docs/organized/docs/reference/vault/key/encrypt-data.mdx +58 -0
  351. package/.docs/organized/docs/reference/vault/key/index.mdx +25 -0
  352. package/.docs/organized/docs/reference/vault/object/create.mdx +62 -0
  353. package/.docs/organized/docs/reference/vault/object/delete.mdx +75 -0
  354. package/.docs/organized/docs/reference/vault/object/get.mdx +50 -0
  355. package/.docs/organized/docs/reference/vault/object/index.mdx +174 -0
  356. package/.docs/organized/docs/reference/vault/object/list.mdx +105 -0
  357. package/.docs/organized/docs/reference/vault/object/metadata.mdx +52 -0
  358. package/.docs/organized/docs/reference/vault/object/update.mdx +67 -0
  359. package/.docs/organized/docs/reference/vault/object/version.mdx +87 -0
  360. package/.docs/organized/docs/reference/vault/object/versions.mdx +83 -0
  361. package/.docs/organized/docs/reference/widgets/get-token.mdx +185 -0
  362. package/.docs/organized/docs/reference/widgets/index.mdx +6 -0
  363. package/.docs/organized/docs/reference/workos-connect/authorize/index.mdx +75 -0
  364. package/.docs/organized/docs/reference/workos-connect/index.mdx +33 -0
  365. package/.docs/organized/docs/reference/workos-connect/introspection/index.mdx +122 -0
  366. package/.docs/organized/docs/reference/workos-connect/metadata/index.mdx +25 -0
  367. package/.docs/organized/docs/reference/workos-connect/metadata/oauth-authorization-server/index.mdx +99 -0
  368. package/.docs/organized/docs/reference/workos-connect/metadata/openid-configuration/index.mdx +70 -0
  369. package/.docs/organized/docs/reference/workos-connect/token/authorization-code-grant/access-token.mdx +53 -0
  370. package/.docs/organized/docs/reference/workos-connect/token/authorization-code-grant/id-token.mdx +60 -0
  371. package/.docs/organized/docs/reference/workos-connect/token/authorization-code-grant/index.mdx +69 -0
  372. package/.docs/organized/docs/reference/workos-connect/token/client-credentials-grant/access-token.mdx +46 -0
  373. package/.docs/organized/docs/reference/workos-connect/token/client-credentials-grant/index.mdx +56 -0
  374. package/.docs/organized/docs/reference/workos-connect/token/index.mdx +39 -0
  375. package/.docs/organized/docs/reference/workos-connect/token/refresh-token-grant.mdx +69 -0
  376. package/.docs/organized/docs/reference/workos-connect/userinfo/index.mdx +46 -0
  377. package/.docs/organized/docs/sdks/dotnet.mdx +6 -0
  378. package/.docs/organized/docs/sdks/elixir.mdx +6 -0
  379. package/.docs/organized/docs/sdks/go.mdx +6 -0
  380. package/.docs/organized/docs/sdks/java.mdx +9 -0
  381. package/.docs/organized/docs/sdks/laravel.mdx +6 -0
  382. package/.docs/organized/docs/sdks/node.mdx +9 -0
  383. package/.docs/organized/docs/sdks/php.mdx +6 -0
  384. package/.docs/organized/docs/sdks/python.mdx +6 -0
  385. package/.docs/organized/docs/sdks/ruby.mdx +9 -0
  386. package/.docs/organized/docs/sso/_navigation.mdx +44 -0
  387. package/.docs/organized/docs/sso/_sequence-diagrams/saml-protocol-security-considerations.md +59 -0
  388. package/.docs/organized/docs/sso/attributes.mdx +110 -0
  389. package/.docs/organized/docs/sso/domains.mdx +111 -0
  390. package/.docs/organized/docs/sso/example-apps.mdx +46 -0
  391. package/.docs/organized/docs/sso/identity-provider-role-assignment.mdx +113 -0
  392. package/.docs/organized/docs/sso/index.mdx +295 -0
  393. package/.docs/organized/docs/sso/it-team-faq.mdx +35 -0
  394. package/.docs/organized/docs/sso/jit-provisioning.mdx +101 -0
  395. package/.docs/organized/docs/sso/launch-checklist.mdx +71 -0
  396. package/.docs/organized/docs/sso/login-flows.mdx +101 -0
  397. package/.docs/organized/docs/sso/redirect-uris.mdx +44 -0
  398. package/.docs/organized/docs/sso/saml-security.mdx +122 -0
  399. package/.docs/organized/docs/sso/signing-certificates.mdx +121 -0
  400. package/.docs/organized/docs/sso/single-logout.mdx +45 -0
  401. package/.docs/organized/docs/sso/test-sso.mdx +73 -0
  402. package/.docs/organized/docs/sso/ux/sign-in.mdx +44 -0
  403. package/.docs/organized/docs/user-management/_navigation.mdx +87 -0
  404. package/.docs/organized/docs/user-management/actions.mdx +169 -0
  405. package/.docs/organized/docs/user-management/authkit.mdx +69 -0
  406. package/.docs/organized/docs/user-management/branding.mdx +143 -0
  407. package/.docs/organized/docs/user-management/connect.mdx +110 -0
  408. package/.docs/organized/docs/user-management/custom-emails.mdx +164 -0
  409. package/.docs/organized/docs/user-management/directory-provisioning.mdx +78 -0
  410. package/.docs/organized/docs/user-management/domain-verification.mdx +28 -0
  411. package/.docs/organized/docs/user-management/email-password.mdx +42 -0
  412. package/.docs/organized/docs/user-management/email-verification.mdx +29 -0
  413. package/.docs/organized/docs/user-management/entitlements.mdx +46 -0
  414. package/.docs/organized/docs/user-management/example-apps.mdx +39 -0
  415. package/.docs/organized/docs/user-management/identity-linking.mdx +52 -0
  416. package/.docs/organized/docs/user-management/impersonation.mdx +82 -0
  417. package/.docs/organized/docs/user-management/index.mdx +525 -0
  418. package/.docs/organized/docs/user-management/invitations.mdx +60 -0
  419. package/.docs/organized/docs/user-management/invite-only-signup.mdx +72 -0
  420. package/.docs/organized/docs/user-management/jit-provisioning.mdx +36 -0
  421. package/.docs/organized/docs/user-management/jwt-templates.mdx +278 -0
  422. package/.docs/organized/docs/user-management/magic-auth.mdx +36 -0
  423. package/.docs/organized/docs/user-management/mcp.mdx +146 -0
  424. package/.docs/organized/docs/user-management/metadata.mdx +119 -0
  425. package/.docs/organized/docs/user-management/mfa.mdx +32 -0
  426. package/.docs/organized/docs/user-management/migrations.mdx +20 -0
  427. package/.docs/organized/docs/user-management/modeling-your-app.mdx +149 -0
  428. package/.docs/organized/docs/user-management/organization-policies.mdx +33 -0
  429. package/.docs/organized/docs/user-management/overview.mdx +46 -0
  430. package/.docs/organized/docs/user-management/passkeys.mdx +42 -0
  431. package/.docs/organized/docs/user-management/radar.mdx +127 -0
  432. package/.docs/organized/docs/user-management/roles-and-permissions.mdx +155 -0
  433. package/.docs/organized/docs/user-management/sessions.mdx +101 -0
  434. package/.docs/organized/docs/user-management/social-login.mdx +34 -0
  435. package/.docs/organized/docs/user-management/sso-with-contractors.mdx +85 -0
  436. package/.docs/organized/docs/user-management/sso.mdx +96 -0
  437. package/.docs/organized/docs/user-management/users-organizations.mdx +91 -0
  438. package/.docs/organized/docs/user-management/widgets.mdx +190 -0
  439. package/.docs/organized/docs/vault/_navigation.mdx +14 -0
  440. package/.docs/organized/docs/vault/index.mdx +38 -0
  441. package/.docs/organized/docs/vault/key-context.mdx +32 -0
  442. package/.docs/organized/docs/vault/quick-start.mdx +82 -0
  443. package/README.md +252 -0
  444. package/dist/chunk-64GKEK6G.js +48 -0
  445. package/dist/chunk-64GKEK6G.js.map +1 -0
  446. package/dist/get-tools.d.ts +23 -0
  447. package/dist/get-tools.js +8 -0
  448. package/dist/get-tools.js.map +1 -0
  449. package/dist/index.d.ts +1 -0
  450. package/dist/index.js +552 -0
  451. package/dist/index.js.map +1 -0
  452. package/dist/prepare.d.ts +2 -0
  453. package/dist/prepare.js +269 -0
  454. package/dist/prepare.js.map +1 -0
  455. package/package.json +49 -0
@@ -0,0 +1,28 @@
1
+ ---
2
+ originalPath: >-
3
+ .tmp-workos-clone/packages/docs/content/reference/sso/get-authorization-url/error-codes.mdx
4
+ ---
5
+ ### Error codes
6
+
7
+ If there is an issue generating an authorization URL, the API will return the original redirect URI with `error` and `error_description` query parameters. If provided, the `state` value will also be included.
8
+
9
+ ```url title="Redirect URI with an error code"
10
+ https://your-app.com/callback?error=organization_invalid&error_description=No%20connection%20associated%20with%20organization&state=123456789
11
+ ```
12
+
13
+ Possible error codes and the corresponding descriptions are listed below.
14
+
15
+ | Error code | Description |
16
+ | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17
+ | `access_denied` | The user denied an OAuth authorization request at the identity provider. |
18
+ | `ambiguous_connection_selector` | A connection could not be uniquely identified using the provided connection selector (e.g., organization). This can occur when there are multiple SSO connections under the same organization. If you need multiple SSO connections for an organization, use the connection parameter to identify which connection to use for SSO. |
19
+ | `connection_domain_invalid` | There is no connection for the provided domain. |
20
+ | `connection_invalid` | There is no connection for the provided ID. |
21
+ | `connection_strategy_invalid` | The provider has multiple strategies associated per environment. |
22
+ | `connection_unlinked` | The connection associated with the request is unlinked. |
23
+ | `domain_connection_selector_not_allowed` | This is a legacy error code that only applies if using the deprecated “domain” query parameter which is no longer valid for this endpoint. Use the “organization” or “connection” query parameters to target a connection instead. |
24
+ | `invalid_connection_selector` | A valid connection selector query parameter must be provided in order to correctly determine the proper connection to return an authorization URL for. Valid connection selectors are either `connection`, `organization`, or `provider`. |
25
+ | `organization_invalid` | There is no organization matching the provided ID. |
26
+ | `oauth_failed` | An OAuth authorization request failed for a user. |
27
+ | `profile_not_allowed_outside_organization` | A profile was received that has an `email` that is outside the [organization’s domain](/reference/organization-domain) and the organization does not allow this. To resolve this, add the missing domain to the organization's Domains. You can read about other options in the [SSO Domains guide](/sso/domains). |
28
+ | `server_error` | The SSO authentication failed for the user. More detailed errors and steps to resolve are available in the [Sessions tab](/dashboard/saml-sessions/sessions-tab) on the connection page in the WorkOS Dashboard. |
@@ -0,0 +1,434 @@
1
+ ---
2
+ descriptions:
3
+ get_authorization_url:
4
+ response_type: >
5
+ The only valid option for the response type parameter is `"code"`.
6
+
7
+
8
+ The `"code"` parameter value initiates an [authorization code grant
9
+ type](https://tools.ietf.org/html/rfc6749#section-4.1). This grant type
10
+ allows you to exchange an authorization code for an access token during
11
+ the redirect that takes place after a user has authenticated with an
12
+ identity provider.
13
+ redirect_uri: >-
14
+ Where to redirect the user after they complete the authentication process.
15
+ You must use one of the redirect URIs configured via the
16
+ [Redirects](https://dashboard.workos.com/redirects) page on the dashboard.
17
+ connection: >
18
+ Used to initiate SSO for a connection. The value should be a WorkOS
19
+ connection ID.
20
+
21
+
22
+ You can persist the WorkOS connection ID with application user or team
23
+ identifiers. WorkOS will use the connection indicated by the connection
24
+ parameter to direct the user to the corresponding IdP for authentication.
25
+ organization: >
26
+ Used to initiate SSO for an organization. The value should be a WorkOS
27
+ organization ID.
28
+
29
+
30
+ You can persist the WorkOS organization ID with application user or team
31
+ identifiers. WorkOS will use the organization ID to determine the
32
+ appropriate connection and the IdP to direct the user to for
33
+ authentication.
34
+ provider: >
35
+ Used to initiate OAuth authentication with Google, Microsoft, GitHub, or
36
+ Apple.
37
+ state: >
38
+ An optional parameter that can be used to encode arbitrary information to
39
+ help restore application state between redirects. If included, the
40
+ redirect URI received from WorkOS will contain the exact `state` that was
41
+ passed.
42
+ login_hint: >
43
+ Can be used to pre-fill the username/email address field of the IdP
44
+ sign-in page for the user, if you know their username ahead of time.
45
+
46
+
47
+ Currently, this parameter is supported for OAuth, OpenID Connect, Okta,
48
+ and Entra ID connections.
49
+ domain_hint: >
50
+ Can be used to pre-fill the domain field when initiating authentication
51
+ with Microsoft OAuth or with a Google SAML connection type.
52
+ url: An OAuth 2.0 authorization URL.
53
+ reference:
54
+ curl:
55
+ - url: /reference/sso/get-authorization-url
56
+ key: get_authorization_url
57
+ id: get_authorization_url
58
+ title: /sso/authorize
59
+ type: GET
60
+ properties:
61
+ - key: response_type
62
+ type: '"code"'
63
+ description: (get_authorization_url.response_type)
64
+ - key: client_id
65
+ type: string
66
+ description: (client_id)
67
+ - key: redirect_uri
68
+ type: string
69
+ description: (get_authorization_url.redirect_uri)
70
+ - key: connection
71
+ optional: true
72
+ type: string
73
+ description: (get_authorization_url.connection)
74
+ - key: organization
75
+ optional: true
76
+ type: string
77
+ description: (get_authorization_url.organization)
78
+ - key: provider
79
+ optional: true
80
+ type: '"AppleOAuth" | "GitHubOAuth" | "GoogleOAuth" | "MicrosoftOAuth"'
81
+ description: (get_authorization_url.provider)
82
+ - key: state
83
+ optional: true
84
+ type: string
85
+ description: (get_authorization_url.state)
86
+ - key: login_hint
87
+ optional: true
88
+ type: string
89
+ description: (get_authorization_url.login_hint)
90
+ - key: domain_hint
91
+ optional: true
92
+ type: string
93
+ description: (get_authorization_url.domain_hint)
94
+ returns:
95
+ - key: url
96
+ type: string
97
+ description: (get_authorization_url.url)
98
+ dotnet:
99
+ - url: /reference/sso/get-authorization-url
100
+ key: GetAuthorizationURL
101
+ patternBefore: ssoService.
102
+ id: get_authorization_url
103
+ title: ssoService.GetAuthorizationURL()
104
+ parameters:
105
+ - key: options
106
+ type: GetAuthorizationURLOptions
107
+ expanded: true
108
+ properties:
109
+ - key: ResponseType
110
+ type: '"code"'
111
+ description: (get_authorization_url.response_type)
112
+ - key: ClientId
113
+ type: string
114
+ description: (client_id)
115
+ - key: RedirectURI
116
+ type: string
117
+ description: (get_authorization_url.redirect_uri)
118
+ - key: Connection
119
+ optional: true
120
+ type: string
121
+ description: (get_authorization_url.connection)
122
+ - key: Organization
123
+ optional: true
124
+ type: string
125
+ description: (get_authorization_url.organization)
126
+ - key: Provider
127
+ optional: true
128
+ type: ProviderType
129
+ description: (get_authorization_url.provider)
130
+ - key: State
131
+ optional: true
132
+ type: string
133
+ description: (get_authorization_url.state)
134
+ - key: LoginHint
135
+ optional: true
136
+ type: string
137
+ description: (get_authorization_url.login_hint)
138
+ - key: DomainHint
139
+ optional: true
140
+ type: string
141
+ description: (get_authorization_url.domain_hint)
142
+ returns:
143
+ - key: url
144
+ type: string
145
+ description: (get_authorization_url.url)
146
+ java:
147
+ - url: /reference/sso/get-authorization-url
148
+ key: getAuthorizationUrl
149
+ patternBefore: sso.
150
+ id: get_authorization_url
151
+ title: sso.getAuthorizationUrl()
152
+ parameters:
153
+ - key: clientId
154
+ type: String
155
+ - key: redirectUri
156
+ type: String
157
+ returns:
158
+ - key: builder
159
+ type: AuthorizationUrlOptionsBuilder
160
+ expanded: true
161
+ properties:
162
+ - key: 'connection(value: String)'
163
+ description: (get_authorization_url.connection)
164
+ - key: 'organization(value: String)'
165
+ description: (get_authorization_url.organization)
166
+ - key: 'provider(value: String)'
167
+ description: (get_authorization_url.provider)
168
+ - key: 'state(value: String)'
169
+ description: (get_authorization_url.state)
170
+ - key: 'domainHint(value: String)'
171
+ description: (get_authorization_url.domain_hint)
172
+ - key: 'loginHint(value: String)'
173
+ description: (get_authorization_url.login_hint)
174
+ - key: build()
175
+ type: String
176
+ description: Performs the request and returns an OAuth 2.0 authorization URL.
177
+ ruby:
178
+ - url: /reference/sso/get-authorization-url
179
+ key: authorization_url
180
+ patternBefore: SSO.
181
+ id: get_authorization_url
182
+ title: SSO.authorization_url()
183
+ parameters:
184
+ - key: redirect_uri
185
+ type: String
186
+ description: (get_authorization_url.redirect_uri)
187
+ - key: client_id
188
+ type: String
189
+ description: (client_id)
190
+ - key: connection
191
+ optional: true
192
+ type: String
193
+ description: (get_authorization_url.connection)
194
+ - key: organization
195
+ optional: true
196
+ type: String
197
+ description: (get_authorization_url.organization)
198
+ - key: provider
199
+ optional: true
200
+ type: '"AppleOAuth" | "GitHubOAuth" | "GoogleOAuth" | "MicrosoftOAuth"'
201
+ description: (get_authorization_url.provider)
202
+ - key: state
203
+ optional: true
204
+ type: String
205
+ description: (get_authorization_url.state)
206
+ - key: login_hint
207
+ optional: true
208
+ type: String
209
+ description: (get_authorization_url.login_hint)
210
+ - key: domain_hint
211
+ optional: true
212
+ type: String
213
+ description: (get_authorization_url.domain_hint)
214
+ returns:
215
+ - key: url
216
+ type: String
217
+ description: (get_authorization_url.url)
218
+ php:
219
+ - url: /reference/sso/get-authorization-url
220
+ key: getAuthorizationUrl
221
+ patternBefore: sso->
222
+ id: get_authorization_url
223
+ title: $sso->getAuthorizationUrl()
224
+ parameters:
225
+ - key: redirectUri
226
+ type: string
227
+ description: (get_authorization_url.redirect_uri)
228
+ - key: connection
229
+ optional: true
230
+ type: string
231
+ description: (get_authorization_url.connection)
232
+ - key: organization
233
+ optional: true
234
+ type: string
235
+ description: (get_authorization_url.organization)
236
+ - key: provider
237
+ optional: true
238
+ type: '"AppleOAuth" | "GitHubOAuth" | "GoogleOAuth" | "MicrosoftOAuth"'
239
+ description: (get_authorization_url.provider)
240
+ - key: state
241
+ optional: true
242
+ type: string
243
+ description: (get_authorization_url.state)
244
+ - key: loginHint
245
+ optional: true
246
+ type: string
247
+ description: (get_authorization_url.login_hint)
248
+ - key: domainHint
249
+ optional: true
250
+ type: string
251
+ description: (get_authorization_url.domain_hint)
252
+ returns:
253
+ - key: url
254
+ type: string
255
+ description: (get_authorization_url.url)
256
+ python:
257
+ - url: /reference/sso/get-authorization-url
258
+ key: get_authorization_url
259
+ patternBefore: sso.
260
+ id: get_authorization_url
261
+ title: sso.get_authorization_url()
262
+ parameters:
263
+ - key: redirect_uri
264
+ type: str
265
+ description: (get_authorization_url.redirect_uri)
266
+ - key: connection_id
267
+ optional: true
268
+ type: str
269
+ description: (get_authorization_url.connection)
270
+ - key: organization_id
271
+ optional: true
272
+ type: str
273
+ description: (get_authorization_url.organization)
274
+ - key: provider
275
+ optional: true
276
+ type: SsoProviderType
277
+ description: (get_authorization_url.provider)
278
+ - key: state
279
+ optional: true
280
+ type: str
281
+ description: (get_authorization_url.state)
282
+ - key: login_hint
283
+ optional: true
284
+ type: str
285
+ description: (get_authorization_url.login_hint)
286
+ - key: domain_hint
287
+ optional: true
288
+ type: str
289
+ description: (get_authorization_url.domain_hint)
290
+ returns:
291
+ - key: url
292
+ type: str
293
+ description: (get_authorization_url.url)
294
+ js:
295
+ - url: /reference/sso/get-authorization-url
296
+ key: getAuthorizationUrl
297
+ patternBefore: sso.
298
+ id: get_authorization_url
299
+ title: sso.getAuthorizationUrl()
300
+ parameters:
301
+ - key: options
302
+ type: object
303
+ unwrap: true
304
+ properties:
305
+ - key: redirectUri
306
+ type: string
307
+ description: (get_authorization_url.redirect_uri)
308
+ - key: clientId
309
+ type: string
310
+ description: (client_id)
311
+ - key: connection
312
+ optional: true
313
+ type: string
314
+ description: (get_authorization_url.connection)
315
+ - key: organization
316
+ optional: true
317
+ type: string
318
+ description: (get_authorization_url.organization)
319
+ - key: provider
320
+ optional: true
321
+ type: '"AppleOAuth" | "GitHubOAuth" | "GoogleOAuth" | "MicrosoftOAuth"'
322
+ description: (get_authorization_url.provider)
323
+ - key: state
324
+ optional: true
325
+ type: string
326
+ description: (get_authorization_url.state)
327
+ - key: loginHint
328
+ optional: true
329
+ type: string
330
+ description: (get_authorization_url.login_hint)
331
+ - key: domainHint
332
+ optional: true
333
+ type: string
334
+ description: (get_authorization_url.domain_hint)
335
+ returns:
336
+ - key: url
337
+ type: string
338
+ description: (get_authorization_url.url)
339
+ go:
340
+ - url: /reference/sso/get-authorization-url
341
+ patternBefore: sso.
342
+ key: GetAuthorizationURL
343
+ id: get_authorization_url
344
+ title: sso.GetAuthorizationURL()
345
+ parameters:
346
+ - key: opts
347
+ type: sso.GetAuthorizationURLOpts
348
+ expanded: true
349
+ properties:
350
+ - key: RedirectURI
351
+ type: string
352
+ description: (get_authorization_url.redirect_uri)
353
+ - key: Connection
354
+ optional: true
355
+ type: string
356
+ description: (get_authorization_url.connection)
357
+ - key: Organization
358
+ optional: true
359
+ type: string
360
+ description: (get_authorization_url.organization)
361
+ - key: Provider
362
+ optional: true
363
+ type: sso.ConnectionType
364
+ description: (get_authorization_url.provider)
365
+ - key: State
366
+ optional: true
367
+ type: string
368
+ description: (get_authorization_url.state)
369
+ - key: LoginHint
370
+ optional: true
371
+ type: string
372
+ description: (get_authorization_url.login_hint)
373
+ - key: DomainHint
374
+ optional: true
375
+ type: string
376
+ description: (get_authorization_url.domain_hint)
377
+ returns:
378
+ - key: url
379
+ type: url.URL
380
+ description: (get_authorization_url.url)
381
+ - (err)
382
+ - url: /reference/sso/get-authorization-url
383
+ key: Login
384
+ id: go_login
385
+ title: sso.Login()
386
+ parameters:
387
+ - key: opts
388
+ type: sso.GetAuthorizationURLOpts
389
+ expanded: true
390
+ properties:
391
+ - key: RedirectURI
392
+ type: string
393
+ description: (get_authorization_url.redirect_uri)
394
+ - key: Connection
395
+ optional: true
396
+ type: string
397
+ description: (get_authorization_url.connection)
398
+ - key: Organization
399
+ optional: true
400
+ type: string
401
+ description: (get_authorization_url.organization)
402
+ - key: Provider
403
+ optional: true
404
+ type: sso.ConnectionType
405
+ description: (get_authorization_url.provider)
406
+ - key: State
407
+ optional: true
408
+ type: string
409
+ description: (get_authorization_url.state)
410
+ - key: LoginHint
411
+ optional: true
412
+ type: string
413
+ description: (get_authorization_url.login_hint)
414
+ - key: DomainHint
415
+ optional: true
416
+ type: string
417
+ description: (get_authorization_url.domain_hint)
418
+ returns:
419
+ - key: handler
420
+ type: http.Handler
421
+ originalPath: >-
422
+ .tmp-workos-clone/packages/docs/content/reference/sso/get-authorization-url/index.mdx
423
+ ---
424
+
425
+ ## Get an authorization URL
426
+
427
+ Generates an OAuth 2.0 authorization URL to authenticate a user with SSO.
428
+
429
+ <CodeBlock referenceId="get_authorization_url">
430
+ <CodeBlockTab title="Request" file="get-authorization-url-request" />
431
+ <CodeBlockTab title="Response" file="get-authorization-url-response" />
432
+ </CodeBlock>
433
+
434
+ You’ll have to specify the user’s connection, organization, or OAuth provider as a parameter. These connection selectors are mutually exclusive, and exactly one must be provided. The generated URL automatically directs the user to their identity provider. Once the user authenticates with their identity provider, WorkOS then issues a redirect to your redirect URI to complete the sign-in flow.
@@ -0,0 +1,21 @@
1
+ ---
2
+ originalPath: >-
3
+ .tmp-workos-clone/packages/docs/content/reference/sso/get-authorization-url/redirect-uri.mdx
4
+ ---
5
+ ### Redirect URI
6
+
7
+ In the [OAuth 2.0](/glossary/oauth-2-0) protocol, a redirect URI is the location that the user is redirected to once they have successfully authenticated with their identity provider.
8
+
9
+ When redirecting the user, WorkOS will generate an authorization code and pass it to your redirect URI as a `code` query parameter, your app will use this code to [get the user’s profile](/reference/sso/profile/get-profile-and-token). Additionally, WorkOS can pass a `state` parameter back to your application that you may use to encode arbitrary information to restore your application state between the redirects.
10
+
11
+ ```url title="Redirect URI with query parameters"
12
+ https://your-app.com/callback?code=01E2RJ4C05B52KKZ8FSRDAP23J&state=dj1kUXc0dzlXZ1hjUQ==
13
+ ```
14
+
15
+ You’ll need to configure the allowed redirect URIs for your application via the [Redirects](https://dashboard.workos.com/redirects) page in the dashboard. Without a valid redirect URI, your users will be unable to sign in. Make sure that the redirect URI you use as a parameter to get the authorization URL matches one of the redirect URIs you have configured in the dashboard.
16
+
17
+ Redirect URIs follow stricter requirements in production environments:
18
+
19
+ - `HTTPS` protocol is required in production environments
20
+ - `HTTP` and `localhost` are allowed in staging environments
21
+ - Wildcard characters are not allowed in production environments
@@ -0,0 +1,8 @@
1
+ ---
2
+ originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/index.mdx
3
+ ---
4
+ # Single Sign-On
5
+
6
+ The Single Sign-On API has been modeled to meet the [OAuth 2.0](/glossary/oauth-2-0) framework specification. As a result, authentication flows constructed using the Single Sign-On API replicate the OAuth 2.0 protocol flow.
7
+
8
+ To automatically respond to changes in your SSO connections, use the [Connection events](/events/connection).
@@ -0,0 +1,47 @@
1
+ ---
2
+ featureFlag: single-logout-docs
3
+ descriptions:
4
+ logout_authorize:
5
+ profile_id: |
6
+ The unique identifier of the WorkOS Profile to log out.
7
+ logout_authorize_response:
8
+ logout_url: >
9
+ The URL to redirect the user to in order to log out ([Logout
10
+ Redirect](/reference/sso/logout) endpoint ready to use)
11
+ logout_token: >
12
+ The logout token to be used in the [Logout
13
+ Redirect](/reference/sso/logout) endpoint.
14
+ reference:
15
+ curl:
16
+ - url: /reference/sso/logout/authorize
17
+ key: logout_authorize
18
+ id: logout_authorize
19
+ title: /sso/logout/authorize
20
+ type: POST
21
+ parameters:
22
+ - key: profile_id
23
+ type: string
24
+ description: (logout_authorize.profile_id)
25
+ returns:
26
+ - key: anonymous
27
+ type: object
28
+ unwrap: true
29
+ properties:
30
+ - key: logout_url
31
+ type: string
32
+ description: (logout_authorize_response.logout_url)
33
+ - key: logout_token
34
+ type: string
35
+ description: (logout_authorize_response.logout_token)
36
+ originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/logout/authorize.mdx
37
+ ---
38
+
39
+ ## Logout Authorize
40
+
41
+ You should call this endpoint from your server to generate a logout token which is required for
42
+ the [Logout Redirect](/reference/sso/logout) endpoint.
43
+
44
+ <CodeBlock referenceId="logout_authorize">
45
+ <CodeBlockTab title="Request" file="logout-authorize-request" />
46
+ <CodeBlockTab title="Response" file="logout-authorize-response" />
47
+ </CodeBlock>
@@ -0,0 +1,14 @@
1
+ ---
2
+ featureFlag: single-logout-docs
3
+ originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/logout/index.mdx
4
+ ---
5
+
6
+ ## Logout
7
+
8
+ The Logout endpoints enable the RP-initiated logout functionality for users in your application.
9
+ Refer to [Single Logout](/sso/single-logout/idp-initiated-logout) section for more details on how to handle
10
+ RP-initiated or IdP-initiated logout.
11
+
12
+ > Please note that the Logout feature is only available for Custom Open ID connections that provide
13
+ > specific logout features. These features include the presence of the `revocation_endpoint` and `end_session_endpoint`
14
+ > in the discovery document.
@@ -0,0 +1,32 @@
1
+ ---
2
+ featureFlag: single-logout-docs
3
+ descriptions:
4
+ logout:
5
+ token: >
6
+ The logout token returned from the [Logout
7
+ Authorize](/reference/sso/logout/authorize) endpoint.
8
+ reference:
9
+ curl:
10
+ - url: /reference/sso/logout/redirect
11
+ key: logout_redirect
12
+ id: logout_redirect
13
+ title: /sso/logout
14
+ type: GET
15
+ parameters:
16
+ - key: token
17
+ type: string
18
+ description: (logout.token)
19
+ originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/logout/redirect.mdx
20
+ ---
21
+
22
+ ## Logout Redirect
23
+
24
+ Logout allows to sign out a user from your application by triggering the identity provider sign out flow.
25
+ This `GET` endpoint should be a redirection, since the identity provider user will be identified in the browser session.
26
+
27
+ Before redirecting to this endpoint, you need to generate a short-lived logout token using the
28
+ [Logout Authorize](/reference/sso/logout/authorize) endpoint.
29
+
30
+ <CodeBlock referenceId="logout_redirect">
31
+ <CodeBlockTab title="Request" file="logout-request" />
32
+ </CodeBlock>