Skip to content

Commit def2093

Browse files
sandhosereivilibre
andauthored
Explain why nonce is optional now
Co-authored-by: reivilibre <[email protected]>
1 parent 632904a commit def2093

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/oidc-client/src/requests/authorization_code.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ pub struct AuthorizationValidationData {
191191
pub state: String,
192192

193193
/// A string to mitigate replay attacks.
194+
/// Used when the `openid` scope is set (and therefore we are using OpenID Connect).
194195
pub nonce: Option<String>,
195196

196197
/// The URI where the end-user will be redirected after authorization.

0 commit comments

Comments
 (0)