Android Authentication Overview

Authentication interfaces and credential management for the Agentforce Android SDK.

Authentication Classes

Authentication Types

OAuth Authentication

  • Access Token: OAuth 2.0 access token for API authentication
  • Refresh Token: Token for refreshing expired access tokens
  • Expiration: Token expiration time and refresh logic

Org JWT Authentication

  • JWT Token: JSON Web Token for organization authentication
  • Claims: User and organization claims within the JWT
  • Validation: Token validation and security checks

Implementation Patterns

Credential Provider

class MyCredentialProvider : AgentforceAuthCredentialProvider {
    override fun getCredentials(): AgentforceAuthCredentials {
        // Return current authentication credentials
    }
}

Credential Management

  • Token Refresh: Automatic token refresh when expired
  • Security: Secure storage and transmission of credentials
  • Validation: Credential validation before API calls

Next Steps