Skip to content

Commit 704b451

Browse files
authored
Merge pull request DuendeArchive#307 from manurosa/dev
Fix log and error messages in sub validation from userinfo
2 parents f021fb0 + b7ba3d3 commit 704b451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResponseValidator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export default class ResponseValidator {
136136
Log.debug("user info claims received from user info endpoint");
137137

138138
if (claims.sub !== response.profile.sub) {
139-
Log.error("sub from user info endpoint does not match sub in id_token");
140-
return Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"));
139+
Log.error("sub from user info endpoint does not match sub in access_token");
140+
return Promise.reject(new Error("sub from user info endpoint does not match sub in access_token"));
141141
}
142142

143143
response.profile = this._mergeClaims(response.profile, claims);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy