-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@W-12971206 - [OAuth][SDK] Backport
instanceUrlSuffix
support to 20…
…23.1 (#1113) * Add instanceUrlSuffix support * Add additional changes from configLabel MR
- Loading branch information
1 parent
d2733b7
commit d736286
Showing
8 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
connector-packager/tests/test_resources/oauth_connector/oauth-config-with-suffix.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<pluginOAuthConfig> | ||
<dbclass>test_oauth</dbclass> | ||
|
||
<oauthConfigId>oauthConfigid</oauthConfigId> | ||
<clientIdDesktop>******</clientIdDesktop> | ||
<clientSecretDesktop>******</clientSecretDesktop> | ||
<redirectUrisDesktop>http://localhost:55555/Callback</redirectUrisDesktop> | ||
|
||
<authUri>/oauth2/v2.0/authorize</authUri> | ||
<tokenUri>/oauth2/v2.0/token</tokenUri> | ||
|
||
<instanceUrlSuffix>/oidc</instanceUrlSuffix> | ||
|
||
<scopes>openid</scopes> | ||
<scopes>email</scopes> | ||
<scopes>profile</scopes> | ||
<scopes>offline_access</scopes> | ||
|
||
</pluginOAuthConfig> |
19 changes: 19 additions & 0 deletions
19
connector-packager/tests/test_resources/oauth_instance_url_suffix/invalid/oauth-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<pluginOAuthConfig> | ||
<dbclass>test_oauth</dbclass> | ||
|
||
<oauthConfigId>oauthConfigid</oauthConfigId> | ||
<clientIdDesktop>******</clientIdDesktop> | ||
<clientSecretDesktop>******</clientSecretDesktop> | ||
<redirectUrisDesktop>http://localhost:55555/Callback</redirectUrisDesktop> | ||
<instanceUrlSuffix>/oidc</instanceUrlSuffix> | ||
|
||
<authUri>/oauth2/v2.0/authorize</authUri> | ||
<tokenUri>/oauth2/v2.0/token</tokenUri> | ||
|
||
<scopes>openid</scopes> | ||
<scopes>email</scopes> | ||
<scopes>profile</scopes> | ||
<scopes>offline_access</scopes> | ||
|
||
</pluginOAuthConfig> |
20 changes: 20 additions & 0 deletions
20
connector-packager/tests/test_resources/oauth_instance_url_suffix/valid/oauth-config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<pluginOAuthConfig> | ||
<dbclass>test_oauth</dbclass> | ||
|
||
<oauthConfigId>oauthConfigid</oauthConfigId> | ||
<clientIdDesktop>******</clientIdDesktop> | ||
<clientSecretDesktop>******</clientSecretDesktop> | ||
<redirectUrisDesktop>http://localhost:55555/Callback</redirectUrisDesktop> | ||
|
||
<authUri>/oauth2/v2.0/authorize</authUri> | ||
<tokenUri>/oauth2/v2.0/token</tokenUri> | ||
|
||
<instanceUrlSuffix>/oidc</instanceUrlSuffix> | ||
|
||
<scopes>openid</scopes> | ||
<scopes>email</scopes> | ||
<scopes>profile</scopes> | ||
<scopes>offline_access</scopes> | ||
|
||
</pluginOAuthConfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters