Companion

object Companion

Types

Link copied to clipboard
data class SimulatedDiscoveryResult(val loginHint: String, val loginHost: String)

The result of a simulated Welcome Discovery flow. Holds the values that the real sfdc://discocallback?login_hint=&my_domain= URL would have provided. Set on SalesforceSDKManager.simulatedDiscoveryResult from the Login Options screen to bypass the email round-trip during automated tests.

Link copied to clipboard
data class UiBridgeApiParameters(val frontdoorBridgeUrl: String, val pkceCodeVerifier: String?)

A data class representing Salesforce Identity API UI Bridge parameters.

Properties

Link copied to clipboard

Extras key for the Salesforce Identity API UI Bridge front door URL

Link copied to clipboard

Intent extra key for Salesforce Welcome login username hint value

Link copied to clipboard

Intent extra key for Salesforce Welcome login host to use with login hint

Link copied to clipboard

Extras key for the Salesforce Identity API UI PKCE code verifier

Link copied to clipboard

For QR code login URLs, the Salesforce Identity API UI Bridge parameters JSON key for the frontdoor URL.

Link copied to clipboard

For QR code login URLs, the URL query string parameter name for the Salesforce Identity API UI Bridge parameters JSON object.

Link copied to clipboard

For QR code login URLs, the Salesforce Identity API UI Bridge parameters JSON key for the PKCE code verifier, which is only used when the front door URL was generated for the web server authorization flow. The user agent flow does not require a value for this parameter.

Link copied to clipboard

For QR code login URLs, the URL path which distinguishes them from other URLs provided by the app's internal QR code reader or deep link intents from external QR code readers.

The Salesforce Welcome Discovery mobile URL's callback URL query string parameter name

The Salesforce Welcome Discovery mobile URL's client id (consumer key) query string parameter name

The Salesforce Welcome Discovery mobile URL's client version query string parameter name

Link copied to clipboard

The URL path used by Salesforce Welcome Discovery URLs

Functions

Link copied to clipboard

Determines if the provided intent has QR code login parameters.

Link copied to clipboard
fun isSalesforceWelcomeDiscoveryMobileUrl(context: Context, uri: Uri): <Error class: unknown class>

Determines if the provided URL has the Salesforce Welcome Discovery path and parameters for mobile callback. The client id (consumer key) of the URL must match the boot config's consumer key.

Link copied to clipboard

Determines if the provided URL has the Salesforce Welcome Discovery path.

Link copied to clipboard
fun uiBridgeApiParametersFromQrCodeLoginUrl(qrCodeLoginUrl: String?): <Error class: unknown class>

Parses Salesforce Identity API UI Bridge parameters from the provided login QR code login URL.