|
SSOToken is used for accessing secure parts of the platform from a third party authentication system via web pals.
Method Detailboolean deleteAuthToken(boolean deleteAccount) Deletes the SSOToken identified and associated with this pal. If deleteAccount is true and the user is the active user, you should immediately log the user out.
Parameters:
Returns: boolean Since: 01-11-2021 String getEmail() Returns the email address associated with this token. Returns: String Since: 01-11-2021 String getFirstName() Returns the first name of the profile associated with this token. Returns: String Since: 01-11-2021 String getId() Returns the ID of this token Returns: String Since: 02-24-2022 String getLastName() Returns the last name of the profile associated with this token. Returns: String Since: 01-11-2021 String getLogoutUrl() Returns the logout URL. Returns: String Since: 01-11-2021 String getProfileId() Returns the profileId associated with this token. Returns: String Since: 05-02-2022 String getProvider() Returns the provider name. Returns: String Since: 01-11-2021 boolean isEnabled() Returns true if the token is enabled. Returns: boolean Since: 01-11-2021 boolean isExclusive() Returns true if exclusive is enabled. Returns: boolean Since: 01-11-2021 boolean isRedirect() Returns true if redirect is enabled. Returns: boolean Since: 01-11-2021 rejectExclusive() Disconnects exclusive from this token which gives the user 'normal' access to this cloud. Since: 01-11-2021 boolean setEmail(String email) Sets the email of the profile associated with this token. Returns false if the email is not unique or otherwise invalid. See c.getError() on failure.
Parameters:
Returns: boolean Since: 01-11-2021 setFirstName(String firstName) Sets the first name of the profile associated with this token.
Parameters:
Since: 01-11-2021 setLastName(String lastName) Sets the last name of the profile associated with this token.
Parameters:
Since: 01-11-2021 setLogoutUrl(String url) Sets logout URL. Must start with https.
Parameters:
Since: 01-11-2021 setProvider(String provider) Sets provider associated with this token.
Parameters:
Since: 01-11-2021 setRedirect(boolean redirect) Sets whether redirect should occur on the login screen rather than error notice. This requires setLogoutUrl to be set.
Parameters:
Since: 01-11-2021 String toString() Returns a description of this object. Returns: String Since: 01-11-2021 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Nov 22, 2024 11:54 AM |