File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,13 @@ public static function create(): OAuth2
139139
140140 public function getProvider (): GenericProvider
141141 {
142+ $ redirectUri = api_get_path (WEB_PLUGIN_PATH ).'oauth2/src/callback.php ' ;
143+ // In cases not precisely defined yet, this alternative version might be necessary - see BT#20611
144+ //$redirectUri = api_get_path(WEB_PATH).'authorization-code/callback';
142145 $ options = [
143146 'clientId ' => $ this ->get (self ::SETTING_CLIENT_ID ),
144147 'clientSecret ' => $ this ->get (self ::SETTING_CLIENT_SECRET ),
145- 'redirectUri ' => api_get_path ( WEB_PLUGIN_PATH ). ' oauth2/src/callback.php ' ,
148+ 'redirectUri ' => $ redirectUri ,
146149 'urlAuthorize ' => $ this ->get (self ::SETTING_AUTHORIZE_URL ),
147150 'urlResourceOwnerDetails ' => $ this ->get (self ::SETTING_RESOURCE_OWNER_DETAILS_URL ),
148151 ];
@@ -310,6 +313,8 @@ public function getUserInfo(GenericProvider $provider, AccessToken $accessToken)
310313 public function getSignInURL (): string
311314 {
312315 return api_get_path (WEB_PLUGIN_PATH ).$ this ->get_name ().'/src/callback.php ' ;
316+ // In cases not precisely defined yet, this alternative version might be necessary - see BT#20611
317+ //return api_get_path(WEB_PATH).'authorization-code/callback';
313318 }
314319
315320 public function getLogoutUrl (): string
You can’t perform that action at this time.
0 commit comments