Passport: Using Config

Created on 11 Feb 2017  路  6Comments  路  Source: laravel/passport

Hi, just curious, is it bad idea if passport use config, and make it easy to us to adjust what our project needs?

Most helpful comment

table name, for example

All 6 comments

Which adjustments are you thinking?

Everything adjustable that doesn't break the OAauth2 standard is already adjustable through the Passport class. By extending Passports classes, or overriding specific routes, you can override most of the functionality.

Ex: I needed OAuth clients to be managed by my organization and not by individual users. Done simply by replacing the routes to the ClientController with methods for handling clients.

table name, for example

Controllers used also nice if they are configurable

Being really _"purist"_: The cookie name laravel_token.
Somehow, it exposes the OAuth "package" used in the Back-end... :stuck_out_tongue_winking_eye:

It would also be the case if you want to override the domain of the laravel_token cookie domain which uses the session domain cookie by default.

Closing for lack of activity, hope you got the help you needed :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gbgelado picture gbgelado  路  3Comments

mehrancodes picture mehrancodes  路  3Comments

aluferraz picture aluferraz  路  3Comments

duccanh0022 picture duccanh0022  路  3Comments

s4uron picture s4uron  路  3Comments