Skip to content

Commit 28d7efc

Browse files
committed
diagram update
1 parent ed29762 commit 28d7efc

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

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

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -107,39 +107,6 @@ To enable this feature, you need to configure OAuth authentication so that Fern
107107
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.
108108
1. Fern uses this token to retrieve the user's API key and automatically populates it in the API Explorer.
109109

110-
#### Architecture diagram
111-
112-
```mermaid
113-
sequenceDiagram
114-
participant U as User
115-
participant F as Fern Docs
116-
participant A as OAuth2 Provider
117-
U->>F: Visit restricted page
118-
F->>F: Check fern_token cookie
119-
120-
alt Cookie exists
121-
F->>F: Decode cookie
122-
F->>F: Verify authentication credentials
123-
Note over F: Attempt to refresh the token, if expired
124-
125-
alt User is properly authenticated
126-
F->>U: Show restricted content
127-
else User is not properly authenticated
128-
F->>U: User is shown a 404 page
129-
end
130-
else No cookie
131-
F->>A: Redirect to `/authenticate` endpoint
132-
A->>U: User authenticates
133-
U->>F: Authorization code is returned
134-
F->>A: Redirect to `/token` endpoint
135-
A->>A: Validate token request
136-
A->>F: Send authenticated access token
137-
F->>F: Set fern_token cookie
138-
F->>F: Verify authentication credentials
139-
F->>U: Show restricted content
140-
end
141-
```
142-
143110
### Setting up auto-populated API keys
144111

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

0 commit comments

Comments
 (0)