mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
* Fixed pipeline with auth-type okta and auth0 * addressing pyline findings * addressing comments * added fix for auth-type auth0 Co-authored-by: parthp2107 <parth@getcollate.io>
This commit is contained in:
parent
5c3fd6cad8
commit
dbd4be5931
@ -88,7 +88,7 @@ public class JwtFilter implements ContainerRequestFilter {
|
||||
throw new AuthenticationException("Invalid token");
|
||||
}
|
||||
String authorizedEmail;
|
||||
if (jwt.getClaim("email") != null) {
|
||||
if (jwt.getClaims().get("email") != null) {
|
||||
authorizedEmail = jwt.getClaim("email").as(TextNode.class).asText();
|
||||
} else if (jwt.getClaim("sub") != null){
|
||||
authorizedEmail = jwt.getClaim("sub").as(TextNode.class).asText();
|
||||
@ -118,5 +118,4 @@ public class JwtFilter implements ContainerRequestFilter {
|
||||
}
|
||||
return source;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user