AgentforceAuthCredentialProviding
Protocol that provides authentication credentials for Agentforce service communication. Implement this protocol to supply the SDK with the necessary authentication tokens and credentials required to establish secure connections with Agentforce services.
| Method | Signature | Description |
|---|---|---|
getAuthCredentials | func getAuthCredentials() -> AgentforceAuthCredentials | Returns the current authentication credentials for Agentforce service access. |
fetchMIAWJWTForPassthrough | func fetchMIAWJWTForPassthrough(pathOrUrl:serviceApiURL:esDeveloperName:) async throws -> PassthroughVerification? | Fetches MIAW JWT from the passthrough endpoint for user verification. This method allows credential providers that have access to SalesforceSDKCore to use RestRequest instead of URLRequest for better authentication handling. |