File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class ImsConfig extends Config
29
29
public const XML_PATH_PROFILE_URL = 'adobe_ims/integration/profile_url ' ;
30
30
public const XML_PATH_NEW_ADMIN_EMAIL_TEMPLATE = 'adobe_ims/email/content_template ' ;
31
31
public const XML_PATH_VALIDATE_TOKEN_URL = 'adobe_ims/integration/validate_token_url ' ;
32
- public const XML_PATH_LOGOUT_URL = 'adobe_ims/integration/logout_url ' ;
32
+ public const XML_PATH_LOGOUT_URI = 'adobe_ims/integration/logout_uri ' ;
33
33
public const XML_PATH_CERTIFICATE_PATH = 'adobe_ims/integration/certificate_path ' ;
34
34
public const XML_PATH_ADMIN_AUTH_URL_PATTERN = 'adobe_ims/integration/admin/auth_url_pattern ' ;
35
35
public const XML_PATH_ADMIN_REAUTH_URL_PATTERN = 'adobe_ims/integration/admin/reauth_url_pattern ' ;
@@ -353,7 +353,7 @@ public function getBackendLogoutUrl(string $accessToken) : string
353
353
return str_replace (
354
354
['#{access_token} ' , '#{client_secret} ' , '#{client_id} ' ],
355
355
[$ accessToken , $ this ->getPrivateKey (), $ this ->getApiKey ()],
356
- $ this ->scopeConfig ->getValue (self ::XML_PATH_LOGOUT_URL )
356
+ $ this ->scopeConfig ->getValue (self ::XML_PATH_LOGOUT_URI )
357
357
);
358
358
}
359
359
Original file line number Diff line number Diff line change 27
27
<token_url >https://ims-na1.adobelogin.com/ims/token</token_url >
28
28
<profile_url ><![CDATA[ https://ims-na1.adobelogin.com/ims/profile/v1?client_id=#{client_id}]]> </profile_url >
29
29
<organization_membership_url ><![CDATA[ https://graph.identity.adobe.com/#{org_id}@AdobeOrg/membership]]> </organization_membership_url >
30
- <logout_url ><![CDATA[ https://ims-na1.adobelogin.com/ims/logout/v1?access_token=#{access_token}& client_id=#{client_id}& client_secret=#{client_secret}]]> </logout_url >
30
+ <logout_uri ><![CDATA[ https://ims-na1.adobelogin.com/ims/logout/v1?access_token=#{access_token}&client_id=#{client_id}&client_secret=#{client_secret}]]> </logout_uri >
31
31
<certificate_path ><![CDATA[ https://static.adobelogin.com/keys/prod/]]> </certificate_path >
32
32
<validate_token_url ><![CDATA[ https://ims-na1.adobelogin.com/ims/validate_token/v1?token=#{token}&client_id=#{client_id}&type=#{token_type}]]> </validate_token_url >
33
33
</integration >
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ private function getLocale(): string
108
108
*/
109
109
public function getLogoutUrl (string $ accessToken , string $ redirectUrl = '' ) : string
110
110
{
111
+ // there is no success response with empty redirect url
112
+ if ($ redirectUrl === '' ) {
113
+ $ redirectUrl = 'self ' ;
114
+ }
111
115
return str_replace (
112
116
['#{access_token} ' , '#{redirect_uri} ' ],
113
117
[$ accessToken , $ redirectUrl ],
You can’t perform that action at this time.
0 commit comments