Skip to content

Missing nbf claim breaks OAuth2JWT #1069

@oopjot

Description

@oopjot

When using OpenUnison's oauth2jwt authentication mechanism with Bitbucket Pipelines as the OIDC provider, the following NPE is thrown:

java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" 
because the return value of "org.json.simple.JSONObject.get(Object)" is null
    at com.tremolosecurity.proxy.auth.oauth2.OAuth2JWT.processToken(OAuth2JWT.java:229)

Bitbucket doesn't support adding that claim to the pipeline step token.
According to RFC 7519, this is an optional claim. Please consider making it optional in oauth2jwt authentication mechanism.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions