You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm surprised to see that this bambda is looking for a Authorization header in responses. Maybe that exists, but it seems quite uncommon to send back a JWT that way.
Here's my own version, looking for JWT in request header Authorization
if (requestResponse.hasResponse() && requestResponse.request().hasHeader("authorization")) {
varauthValue = requestResponse.request().headerValue("authorization");
if (authValue.startsWith("Bearer ey")) {
if (authValue.split("\\.").length == 3) {
returntrue;
}
}
}
returnfalse;
The text was updated successfully, but these errors were encountered:
I'm surprised to see that this bambda is looking for a
Authorization
header in responses. Maybe that exists, but it seems quite uncommon to send back a JWT that way.Here's my own version, looking for JWT in request header
Authorization
The text was updated successfully, but these errors were encountered: