Skip to content

[8.x] Mention package for custom claims#7531

Closed
driesvints wants to merge 1 commit into8.xfrom
driesvints-patch-1
Closed

[8.x] Mention package for custom claims#7531
driesvints wants to merge 1 commit into8.xfrom
driesvints-patch-1

Conversation

@driesvints
Copy link
Copy Markdown
Member

A long outstanding issue on the Passport repo is the ability to add custom claims to issued tokens. However, atm league/oauth2-server currently does not provide an easy way to do this.

Until an easy way has been provided so we can add this natively to Passport, I recommend mentioning the laravel-passport-claims package. This will allow people to add their custom claims while we don't need to perform any changes right now in Passport.

The reason why I don't want to go down the path of adding these changes to Passport is because I don't want to diverge too far from the way league/oauth2-server works. It's best to wait until they provide the functionality for us to implement this easily.

@taylorotwell
Copy link
Copy Markdown
Member

I don't usually recommend or endorse third party packages in the docs unless they are very well known and maintained for a while.

@taylorotwell taylorotwell deleted the driesvints-patch-1 branch December 23, 2021 16:49
@fredsal
Copy link
Copy Markdown

fredsal commented Apr 20, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants