solleer / oauth-signin
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/solleer/oauth-signin
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: 2025-11-25 10:33:26 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
}
}