getOpenIDToken

open fun getOpenIDToken(loginServer: String, @Nullable instanceServer: String, clientId: String, @Nullable communityId: String, @Nullable communityUrl: String, refreshToken: String): String

Fetches an OpenID token from the Salesforce backend. This requires an OpenID token to be configured on the Salesforce connected app in the backend. It also requires the "openid" scope to be added on the client side through bootconfig and on the connected app.

Return

OpenID token.

Parameters

loginServer

Login server.

instanceServer

Instance server, or null if not yet known.

clientId

Client ID.

communityId

Community ID, or null if not a community user.

communityUrl

Community URL, or null if not a community user.

refreshToken

Refresh token.