- DATE:
- AUTHOR:
- Edwin Lim
2024.11.08 | GitHub OAuth & B2B Sandbox Values
GitHub OAuth for B2B auth
We’re excited to announce that GitHub is now available as an official OAuth provider for B2B authentication. You can now enable GitHub as a login and signup options for your users.
With GitHub OAuth, you also gain access to the following Stytch B2B auth features:
Just-in-Time (JIT) Provisioning: Users can be automatically provisioned into organizations if they belong to approved GitHub organizations, streamlining access and onboarding.
Discovery: GitHub OAuth can be used with Discovery authentication, a centralized login flow that enables users to quickly find and access all their associated organizations.
GitHub API: By managing GitHub scopes and access, you can enable a wide range of integrations with GitHub’s API.
"organization": {
"organization_id": "organization-test-07971b0...",
"organization_name": "Example Org Inc.",
"organization_slug": "example-org",
"oauth_tenant_jit_provisioning": "RESTRICTED",
"allowed_oauth_tenants": {
"github": ["3041234", "4328976"]
"slack": ["T1234"],
"hubspot": ["Hub12345", "Hub23456"]
},
"auth_methods": "ALL_ALLOWED",
...
}
Check out B2B OAuth guide and API reference to get started with GitHub OAuth.
B2B Sandbox Values
We’ve added sandbox values to our B2B API, making it easier to test and integrate with Stytch’s B2B auth features and flows. Within the Test environment, these sandbox values return production-like API responses complete with Member Sessions and JWTs.
This update introduces special values reserved for testing such as sandbox@stytch.com
, a sample organization ID, and magic link tokens.
# Test the Send Invite endpoint with sandbox values
curl --request POST \
--url https://test.stytch.com/v1/b2b/magic_links/email/invite \
-u 'PROJECT_ID:SECRET' \
-H 'Content-Type: application/json' \
-d '{
"email_address": "sandbox@stytch.com",
"organization_id": "organization-test-007d9d4a-deac-4a87-ba0a-e6e8afba4d4b"
}'
Visit our B2B Sandbox docs for more details.
Where to find us
Stytch developer Slack
Join the discussion, ask questions, and suggest new features in our official Slack!
Get support
Check out the Stytch Forum or email us at support@stytch.com