Skip to content

add optional clientId param to createToken #1517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

add optional clientId param to createToken #1517

wants to merge 3 commits into from

Conversation

saeedvaziry
Copy link

Currently, The createToken method uses the first personal access client from the database if thepassport.personal_access_client config wasn't set at all.
I added the clientId param to the createToken method so you can create tokens for any clients by their id.

@taylorotwell
Copy link
Member

Breaking change I don't want to make - set the personal_access_client in the configuration.

@saeedvaziry
Copy link
Author

@taylorotwell Correct. But what if there is multiple personal access clients? How we can switch dynamically between them?

@saeedvaziry
Copy link
Author

What if we add a new method to create tokens for a specific client?

@waney
Copy link

waney commented Aug 22, 2022

me too.

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