-
-
Notifications
You must be signed in to change notification settings - Fork 148
Description
Hello,
I am about to write the next large project. For that I think this Framework is a great fit.
For that I have two questions regarding OAuth.
-
I see that there are already some providers such as GitHub. I have my own custom provider based upon league. Can I integrate it without relying on patching the SupportedOAuthProvider.php ? This is not a Provider that Tempest would benefit from including globally. I can use the GenericOAuthConfig but would like to benefit from mapping my scopes with the methods such as getXYField... (without ->raw, methods are present in the provider package)
-
In the Docs I can find https://tempestphp.com/3.x/features/oauth#working-with-the-o-auth-user this feature.
Is it possible to make the $user globally avaliable? So that I can access $user->id in a controller without having to initialize it everywhere again? Would that just work with $this->user->myCustomScopeClaim?
Thank you for your help.
Kindly