IPWorks Auth 2020 JavaScript Edition

Questions / Feedback?

GetUserInfo Method

Retrieves claims about the user.

Syntax

async openid.getUserInfo(): Promise<void>

Remarks

This method retrieves claims about the user. Before calling GetUserInfo method a successful call to GetAuthorization must be made. The access token returned by GetAuthorization is used by the OpenID provider at ServerUserInfoURL to identify the user for which claims are being retrieved.

When this method is called the class requests the claims about the user from the ServerUserInfoURL. The resulting claims are available in the UserDetail* properties.

Note: The GetUserInfo method will populate the UserDetail* properties with the claims returned in the ID token during the authorization process. This method may not need to be called in order to access the desired claims about the user.


openid.GetUserInfo();
// ... use the user info in the remainder of your application ...

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Auth 2020 JavaScript Edition - Version 20.0 [Build 7721]