getUserProfile method
Makes an API call to keycloak to get the users profile.
Implementation
Future<KeycloakUser> getUserProfile() async {
var request = new Request(HttpMethod.Get, "${this.baseUrl}/auth/realms/${this.realm}/protocol/openid-connect/userinfo");
request = await this.authenticateRequest(request);
var resp = await send(request);
var json = Convert.jsonDecode(resp.body);
return KeycloakUser.fromJson(json);
}