dw.customer
Class ExternalProfile
Object
dw.customer.ExternalProfile
Represents the credentials of a customer. Since 13.6 it is possible to have customers who are not authenticated through a login and password but through an external authentication provider via the OAuth2 protocol. In such cases, the AuthenticationProviderID will point to an OAuth provider configured in the system and the ExternalID will be the unique identifier of the customer on the Authentication Provider's system. For example, if an authentication provider with ID "Google123" is configured pointing to Google and the customer has a logged in into Google in the past and has created a profile there, Google assigns a unique number identifier to that customer. If the storefront is configured to allow authentication through Google and a new customer logs into the storefront using Google, the AuthenticationProviderID property of his Credentials will contain "Google123" and the ExternalID property will contain whatever unique identifier Google has assigned to him.

Note: this class handles sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.

Properties
authenticationProviderID  :  String  (Read Only)
The authentication provider ID.
customer  :  Customer  (Read Only)
The customer object related to this profile.
email  :  String
The customer's email address.
externalID  :  String  (Read Only)
The external ID.
lastLoginTime  :  Date  (Read Only)
The last login time of the customer through the external provider
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getAuthenticationProviderID() : String
Returns the authentication provider ID.
getCustomer() : Customer
Returns the customer object related to this profile.
getEmail() : String
Returns the customer's email address.
getExternalID() : String
Returns the external ID.
getLastLoginTime() : Date
Returns the last login time of the customer through the external provider
setEmail(email : String) : void
Sets the customer's email address.
Methods inherited from class Object
Method Detail
getAuthenticationProviderID
getAuthenticationProviderID() : String
Returns the authentication provider ID.
Returns:
the authentication provider ID.

getCustomer
getCustomer() : Customer
Returns the customer object related to this profile.
Returns:
customer object related to profile.

getEmail
getEmail() : String
Returns the customer's email address.
Returns:
the customer's email address.

getExternalID
getExternalID() : String
Returns the external ID.
Returns:
the external ID.

getLastLoginTime
getLastLoginTime() : Date
Returns the last login time of the customer through the external provider
Returns:
the time, when the customer was last logged in through this external provider

setEmail
setEmail(email : String) : void
Sets the customer's email address.
Parameters:
email - the customer's email address.