File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ static const ErrorCodeMapping kCredentialCodes[] = {
65
65
{" ERROR_MISSING_MULTI_FACTOR_INFO" , kAuthErrorMissingMultiFactorInfo },
66
66
{" ERROR_INVALID_MULTI_FACTOR_SESSION" , kAuthErrorInvalidMultiFactorSession },
67
67
{" ERROR_MULTI_FACTOR_INFO_NOT_FOUND" , kAuthErrorMultiFactorInfoNotFound },
68
+ {" ERROR_MISSING_OR_INVALID_NONCE" , kAuthErrorMissingOrInvalidNonce },
68
69
{nullptr },
69
70
};
70
71
static const ErrorCodeMapping kUserCodes [] = {
Original file line number Diff line number Diff line change @@ -411,6 +411,11 @@ enum AuthError {
411
411
// / Indicates that an error occurred during a Federated Auth UI Flow when the
412
412
// / user was prompted to enter their credentials.
413
413
kAuthErrorFederatedSignInUserInteractionFailure ,
414
+
415
+ // / Indicates that a request was made with a missing or invalid nonce.
416
+ // / This can happen if the hash of the provided raw nonce did not match the
417
+ // / hashed nonce in the OIDC ID token payload.
418
+ kAuthErrorMissingOrInvalidNonce ,
414
419
#endif // INTERNAL_EXEPERIMENTAL
415
420
};
416
421
@@ -426,7 +431,7 @@ struct FederatedProviderData {
426
431
// / @brief Contains information to identify an OAuth povider.
427
432
struct FederatedOAuthProviderData : FederatedProviderData {
428
433
// / Initailizes an empty provider data structure.
429
- FederatedOAuthProviderData () { }
434
+ FederatedOAuthProviderData () {}
430
435
431
436
// / Initializes the provider data structure with a provider id.
432
437
explicit FederatedOAuthProviderData (const std::string& provider) {
You can’t perform that action at this time.
0 commit comments