solleer / oauth-signin
There is no license information available for the latest version (v1.0) of this package.
v1.0
2020-04-24 19:56 UTC
Requires
- google/apiclient: ^2.0
- league/oauth2-client: ^2.4.1
- microsoft/microsoft-graph: ^1.5.0
- solleer/user: ^1.1
This package is auto-updated.
Last update: 2024-04-25 07:11:19 UTC
README
The following is an example of how to config these classes using json with Dice.
{ "$office365Provider" : { "instanceOf" : "League\\OAuth2\\Client\\Provider\\GenericProvider", "constructParams" : [{ "clientId" : "your client id", "clientSecret" : "your client secret", "redirectUri" : "your redirect uri", "urlAuthorize" : "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "urlAccessToken" : "https://login.microsoftonline.com/common/oauth2/v2.0/token", "urlResourceOwnerDetails" : "", "scopes" : "openid YourScopes" }] }, "Solleer\\OAuthSignin\\SigninHandler\\Office365Auth" : { "constructParams" : [ { "Dice::INSTANCE": "$office365Provider"} ] }, "Google_Client" : { "instanceOf" : "Solleer\\OAuthSignin\\SigninHandler\\GoogleClientFactory", "call" : [ ["createWithToken", [], "Dice::CHAIN_CALL"], ["setAuthConfig", ["Your Google Config Json file"]], ["setRedirectUri", ["your redirect uri"]], ["addScope", [[ { "Dice::CONSTANT" : "Google_Service_Oauth2::USERINFO_EMAIL" }, "Your Scopes" ]]] ], "shared" : true } }