thephpleague / oauth2-server

A spec compliant, secure by default PHP OAuth 2.0 Server
https://oauth2.thephpleague.com
MIT License
6.53k stars 1.11k forks source link

Custumize request attributes in BearerTokenValidator #1183

Closed freebuu closed 3 years ago

freebuu commented 3 years ago

Hello! I'm looking for a way to add custom request attributes for token. The problem is here: https://github.com/thephpleague/oauth2-server/blob/master/src/AuthorizationValidators/BearerTokenValidator.php#L120 There is no option to add attributes except for write my own implementation of validator.

Sephster commented 3 years ago

At the moment this is the only way sorry. Hoping to get custom claims added in soon though.