create With Challenge
suspend fun createWithChallenge(challenge: ArcGISAuthenticationChallenge, username: String, password: String, tokenExpirationInterval: Int? = null): Result<TokenCredential>
Creates a TokenCredential with information needed to access an ArcGIS resource.
Return
Returns a TokenCredential.
Since
200.1.0
Parameters
challenge
An ArcGISAuthenticationChallenge object from which to construct the TokenCredential.
username
The username used to access the secured resource or retrieve a token.
password
The password used to access the secured resource or retrieve a token.
token Expiration Interval
The duration the token will remain valid, represented in minutes. The value must be greater than 0, otherwise the server default is used.