Skip to content

OAuth2 Custom Provider #2019

@luggesexe

Description

@luggesexe

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.

  1. 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)

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions