Skip to content

Commit

Permalink
Merge pull request #287 from vbhayden/master
Browse files Browse the repository at this point in the history
Adding a Null Check for P1 Auth
  • Loading branch information
Lomilar authored Oct 18, 2023
2 parents af2eb4b + f56e1dd commit 7e9b8d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/server/shims/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ if (process.env.CASS_PLATFORM_ONE_AUTH_ENABLED)
*/
function validateJwt (token) {

if (token == null)
return false;

let checkIssuer = interpretEnvFlag(process.env.CASS_PLATFORM_ONE_AUTH_CHECK_ISSUER);
if (checkIssuer) {
let expectedIssuer = process.env.CASS_PLATFORM_ONE_ISSUER;
Expand Down

0 comments on commit 7e9b8d4

Please sign in to comment.