You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/authentication/set-up-oauth.mdx
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ Fern will need the following details to configure OAuth authentication:
25
25
-[ ] Scopes (e.g. `openid`, `profile`, `email`)
26
26
-[ ] Issuer URL (e.g. `https://<your-domain>`)
27
27
28
+
<Notetitle="Specifying an audience">
29
+
If your client is connected to an API, you may need to specify an audience in the authentication request.
30
+
31
+
The updated authorization URL may look like this: `https://<your-oauth-tenant>/oauth2/authorize?audience=<your-api-identifier>`
32
+
</Note>
33
+
28
34
Send these details to [email protected] or in your dedicated Slack channel.
29
35
</Step>
30
36
@@ -54,6 +60,10 @@ Add a custom claim to your OAuth provider's token response. This claim will be u
54
60
}
55
61
```
56
62
63
+
<Warningtitle="Using a claim other than `roles`">
64
+
Some OAuth providers have strict requirements for custom claims. If you need to use a claim other than `roles`, please reach out to Fern and specify which claim should be parsed for the user's roles.
65
+
</Warning>
66
+
57
67
<AccordionGroup>
58
68
<Accordiontitle="Using Auth0">
59
69
To add a custom claim to Auth0, you need to create a **custom action**. This action will be used to add the custom claim to the token response.
@@ -62,6 +72,16 @@ To add a custom claim to Auth0, you need to create a **custom action**. This act
0 commit comments