Skip to content

Unwrap JWT token #4

@omerlh

Description

@omerlh

Since Airbag handles all the heavy stuff of validating the signature, it could also pass upstream only the payload of the JWT. Upstream uses only the payload for authorization. This could be done by setting an env var, something like PARSE_TOKEN: true. When this env var is set, Airbag will unwrap the JWT (including base64 decode) and send a header in the following format to upstream:

Authorization: {exp: 234234, iss: blah, should: read etc}

@itaym2 @Yshayy what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions