Commit b75180d
committed
Add browser dashboard to spec/dummy for exercising OIDC endpoints
Replace the DummyController root redirect with a single-page dashboard that
drives every OpenID Connect endpoint from the browser, removing the need for
rails console + curl when trying the gem out by hand.
- Setup: create users and OAuth applications via plain Rails forms (CSRF
tokens are auto-attached, so it works in development without RAILS_ENV=test)
- Discovery: openid-configuration, JWKS and WebFinger
- Authorization: code / implicit / form_post with nonce, PKCE, prompt and
max_age; the callback hands the code/token back to the dashboard
- Token exchange, UserInfo, Introspection and Revocation via fetch()
- ID Token header/payload decoded client-side with labelled claims
skip_authorization is enabled only in development so a GET to /oauth/authorize
redirects straight back with a code; the test environment is unchanged
(controller specs stub skip_authorization? themselves). Adds a minimal
development environment file. No new tests (dummy UI only).1 parent 75d1613 commit b75180d
8 files changed
Lines changed: 458 additions & 1 deletion
File tree
- spec/dummy
- app
- controllers
- views
- dummy
- layouts
- config
- environments
- initializers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
6 | 29 | | |
7 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments