Skip to content

Commit c4de154

Browse files
committed
fix nits
1 parent 149d317 commit c4de154

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

fern/products/docs/pages/api-references/autopopulate-api-key.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ To enable this feature, you need to configure authentication so that Fern can se
3131
2. After successful authentication, your system must set a cookie called `fern_token` in the user's browser.
3232
3. This token should be a [JWT](https://jwt.io) encrypted with a secret key that we provide. The JWT should contain the user's API key.
3333

34+
<Note> See [Role-based access control](/docs/authentication/rbac#architecture-diagrams) for a diagram of the JWT flow.</Note>
35+
3436
The JWT should have a structure similar to:
3537

3638
<CodeBlocks>
@@ -107,6 +109,8 @@ To enable this feature, you need to configure OAuth authentication so that Fern
107109
1. After successful authentication, your OAuth provider redirects back to Fern with an authorization code, which Fern exchanges for an access token at your token endpoint.
108110
1. Fern uses this token to retrieve the user's API key and automatically populates it in the API Explorer.
109111

112+
<Note> See [Role-based access control](/docs/authentication/rbac#architecture-diagrams) for a diagram of the OAuth flow.</Note>
113+
110114
#### Setting up auto-populated API keys
111115

112116
To enable API key injection, you'll need to:

fern/products/docs/pages/authentication/rbac.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Below, we walk through each of the steps required to configure RBAC with either
2929
### Architecture diagrams
3030

3131
<Tabs>
32-
<Tab title="RBAC with JWT">
32+
<Tab title="JWT" toc={true}>
3333
```mermaid
3434
sequenceDiagram
3535
participant U as User
@@ -64,7 +64,7 @@ sequenceDiagram
6464
```
6565

6666
</Tab>
67-
<Tab title="RBAC with OAuth">
67+
<Tab title="OAuth" toc={true}>
6868

6969
```mermaid
7070
sequenceDiagram

0 commit comments

Comments
 (0)