OAuthRefreshResult Class
Stores the result of an AuthProviderPluginClass refresh method. OAuth authentication flow provides a refresh token that can be used to get a new access token. Access tokens have a limited lifetime as specified by the session timeout value. When an access token expires, use a refresh token to get a new access token.
The OAuthRefreshResult class contains the parameters, accessToken, refreshToken, and error, all of which are of type string. For a code example, see .
The following are constructors for OAuthRefreshResult.
-
OAuthRefreshResult(accessToken, refreshToken, error)
Creates an instance of the
OAuthRefreshResultclass using the specified access token, refresh token, and error for a custom authentication provider plug-in. -
OAuthRefreshResult(accessToken, refreshToken)
Creates an instance of the
OAuthRefreshResultclass using the specified access token and refresh token for a custom authentication provider plug-in. Use this method when you know that the refresh was successful.
Creates an instance of the OAuthRefreshResult class using the specified access token, refresh token, and error for a custom authentication provider plug-in.
public OAuthRefreshResult(String accessToken, String refreshToken, String error)
-
accessToken:
Type: String
OAuth access token
for the user who is currently logged in.
-
refreshToken:
Type: String
OAuth refresh token
for the user who is currently logged in.
-
error:
Type: String
Error that occurred
when a user attempted to authenticate with the custom authentication provider.
Creates an instance of the OAuthRefreshResult class using the specified access token and refresh token for a custom authentication provider plug-in. Use this method when you know that the refresh was successful.
public OAuthRefreshResult(String accessToken, String refreshToken)
-
accessToken:
Type: String
The OAuth access token for the user who is logged in.
-
refreshToken:
Type: String
The OAuth refresh token for the user who is logged in.
The following are properties for OAuthRefreshResult.
-
The OAuth access token for the user who is currently logged in.
-
Error that occurs when a user unsuccessfully attempts to authenticate with the custom authentication provider.
-
The OAuth refresh token for the user who is currently logged in.
The OAuth access token for the user who is currently logged in.
public String accessToken {get; set;}
Type: String
Error that occurs when a user unsuccessfully attempts to authenticate with the custom authentication provider.
public String error {get; set;}
Type: String
The OAuth refresh token for the user who is currently logged in.
public String refreshToken {get; set;}
Type: String