Skip to content

Commit

Permalink
docs: update oauth2 debug swction (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryadhadwal committed Sep 10, 2021
1 parent 8e10504 commit a2cdc08
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
14 changes: 12 additions & 2 deletions docs/docs/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,19 @@ multiple reasons:
correct would be `/oauth2/auth?response_type=token+id_token&scope=openid` or
any other combination such as `response_type=id_token`,
`response_type=token+code+id_token`).
3. You consent app did not send `granted_scope: ["openid"]` or when accepting
3. You forgot to include `nonce` when calling
`/oauth2/auth?response_type=id_token` or any combination of `id_token`
(`token+id_token`, `token+code+id_token` etc.) `nonce` is a value sent by the
client application and included as a claim in the returned `id_token`. The
`nonce` claim can then be verified by the client application to mitigate any
replay attacks. Optional for Authoize Code Flow, but mandatory for
Implicit/Hybrid flow. Correct request would be -
`/oauth2/auth?response_type=id_token?nonce=some-value`. You can read more
about `nonce` here
[OpenId Connect Core](https://openid.net/specs/openid-connect-core-1_0.html#NonceNotes).
4. Your consent app did not send `granted_scope: ["openid"]` or when accepting
the consent request.
4. The OAuth 2.0 Client making the request is not allowed to request the scope
5. The OAuth 2.0 Client making the request is not allowed to request the scope
`openid`.

## OAuth 2.0 Refresh Token is missing
Expand Down
12 changes: 10 additions & 2 deletions docs/versioned_docs/version-v1.10/debug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,17 @@ multiple reasons:
correct would be `/oauth2/auth?response_type=token+id_token&scope=openid` or
any other combination such as `response_type=id_token`,
`response_type=token+code+id_token`).
3. You consent app did not send `granted_scope: ["openid"]` or when accepting
3. You forgot to include `nonce` when calling `/oauth2/auth?response_type=id_token`
or any combination of `id_token` (`token+id_token`, `token+code+id_token` etc.)
`nonce` is a value sent by the client application and included as a claim in
the returned `id_token`. The `nonce` claim can then be verified by the client
application to mitigate any replay attacks. Optional for Authoize Code Flow,
but mandatory for Implicit/Hybrid flow. Correct request would be -
`/oauth2/auth?response_type=id_token?nonce=some-value`.
You can read more about `nonce` here [OpenId Connect Core](https://openid.net/specs/openid-connect-core-1_0.html#NonceNotes).
4. Your consent app did not send `granted_scope: ["openid"]` or when accepting
the consent request.
4. The OAuth 2.0 Client making the request is not allowed to request the scope
5. The OAuth 2.0 Client making the request is not allowed to request the scope
`openid`.

## OAuth 2.0 Refresh Token is missing
Expand Down
1 change: 1 addition & 0 deletions driver/registry_nosqlite.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !sqlite
// +build !sqlite

package driver
Expand Down
1 change: 1 addition & 0 deletions driver/registry_sqlite.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build sqlite
// +build sqlite

package driver
Expand Down
1 change: 1 addition & 0 deletions go_mod_indirect_pins.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go_mod_indirect_pins
// +build go_mod_indirect_pins

package main
Expand Down
1 change: 1 addition & 0 deletions test/conformance/run_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build conformity
// +build conformity

package main
Expand Down

0 comments on commit a2cdc08

Please sign in to comment.