Skip to content

Revisit isolation of Bearer token #35

@jcorry

Description

@jcorry

This seems error prone. Can you check the type of Authorization header as well? I know it will throw an unauthorized error if the length is not as expected which could be enough but just food for thought.

Maybe something like:

if len(bearerToken) == 2 && strings.Contains(bearerToken[0], "Bearer") {

Originally posted by @syntacticNaCl in #33

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions