obtainAccessToken method
- {String scope}
Obtains an access token for the specified resource scope
from the MobileFirst authorization server.
Returns Future<AccessToken> for the scope
provided
Implementation
Future<AccessToken> obtainAccessToken({String scope}) async {
final Map token = await _channel.invokeMethod(
WLAUTHORIZATIONMANAGER_OBTAINACCESSTOKEN,
<String, dynamic>{SCOPE: scope});
return AccessToken(accessToken: token);
}