Skip to content

there probably shouldn't be a token validation  #9

Open
@corbosman

Description

@corbosman

Heya, as the first line in your controller you do:

$this->resourceServer->validateAuthenticatedRequest($request);

This checks if there is a bearer token with a valid access token in the Authorization header. But that is probably not how you should implement that afaik. The token you are presenting for introspection as the token body parameter, should not be the one used for authentication. (and it can be now if it's a valid token).

I think the specs mention either basic auth or some other mechanism. Maybe simply leave it up to the consumer of your package to decide how to implement authentication for the introspection client. Although im not sure how, i dont think they could assign a middleware to your routes easily.

im interested in how you see this.

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