Skip to content

Commit

Permalink
Minlopro: WIP enhanced auth.provider setup
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomeandrey committed Jan 16, 2025
1 parent c7c7761 commit b570c42
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<calloutStatus>Enabled</calloutStatus>
<endpoint>@SF_INSTANCE_URL</endpoint>
<generateAuthorizationHeader>true</generateAuthorizationHeader>
<label>Salesforce REST API</label>
<label>Salesforce REST API (CCF)</label>
<principalType>NamedUser</principalType>
<protocol>Oauth</protocol>
</NamedCredential>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<NamedCredential xmlns="http://soap.sforce.com/2006/04/metadata">
<allowMergeFieldsInBody>false</allowMergeFieldsInBody>
<allowMergeFieldsInHeader>false</allowMergeFieldsInHeader>
<authProvider>Loopback_WSPKCE</authProvider>
<calloutStatus>Enabled</calloutStatus>
<endpoint>@SF_INSTANCE_URL</endpoint>
<generateAuthorizationHeader>true</generateAuthorizationHeader>
<label>Salesforce REST API (WSPKCE)</label>
<principalType>NamedUser</principalType>
<protocol>Oauth</protocol>
</NamedCredential>
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
<classAccesses>
<apexClass>CCFAuthProviderPlugin</apexClass>
<apexClass>OAuthClientCredentialsAuthProviderPlugin</apexClass>
<enabled>true</enabled>
</classAccesses>
<classAccesses>
<apexClass>OAuthWebServerWithPkceAuthProviderPlugin</apexClass>
<enabled>true</enabled>
</classAccesses>
<externalCredentialPrincipalAccesses>
Expand Down

0 comments on commit b570c42

Please sign in to comment.