Skip to content

Commit 4e787a2

Browse files
authored
docs(reference-app): collapse the walkthrough behind a disclosure (#196)
Shows the consent screen as a single hero image, then tucks the full four-step sequence behind a <details> so the reader can click through it without the section dominating the README. Uses the existing stills — no gif or video.
1 parent 67a2dca commit 4e787a2

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,26 +244,33 @@ jwk [like this](https://jwt.io/#debugger-io?token=eyJhbGciOiJSUzI1NiIsImtpZCI6Im
244244

245245
## See it work
246246

247-
A walk through the authorization code flow with OpenID Connect, from login to real
248-
tokens. Run `./gradlew bootTestRun` and open http://localhost:8080 to click through it
249-
yourself.
247+
Log in, authorize the requested scopes, and the app exchanges the authorization code for
248+
real tokens from Hydra. Run `./gradlew bootTestRun` and open http://localhost:8080 to
249+
click through it yourself.
250250

251-
Log in (the demo credentials are pre-filled):
251+
![consent screen](docs/images/authorization-code-flow/2-consent.png)
252+
253+
<details>
254+
<summary>See the full flow, step by step</summary>
255+
256+
Log in — the demo credentials are pre-filled.
252257

253258
![login screen](docs/images/authorization-code-flow/1-login.png)
254259

255-
Authorize the scopes the application is requesting:
260+
Authorize the scopes the application is requesting.
256261

257262
![consent screen](docs/images/authorization-code-flow/2-consent.png)
258263

259-
Hydra redirects back with an authorization code, which the app exchanges for tokens:
264+
Hydra redirects back with an authorization code, which the app exchanges for tokens.
260265

261266
![callback screen](docs/images/authorization-code-flow/3-callback-page.png)
262267

263-
The result is a real access token, ID token, and refresh token from Hydra:
268+
The result is a real access token, ID token, and refresh token from Hydra.
264269

265270
![token response](docs/images/authorization-code-flow/4-tokens.png)
266271

272+
</details>
273+
267274
## Building against a different testcontainers-ory-hydra version
268275

269276
The `testcontainersOryHydraVersion` Gradle property overrides the version pinned in

0 commit comments

Comments
 (0)