Click or drag to resize

Credentials Class

Basic class to create new users, Username/Password authentication
Inheritance Hierarchy
SystemObject
  NetQuarry.Web.APICredentials

Namespace:  NetQuarry.Web.API
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class Credentials : ILogSupport

The Credentials type exposes the following members.

Constructors
  NameDescription
Public methodCredentials
Initializes a new instance of the Credentials class
Top
Properties
  NameDescription
Public propertyapp_version
The version of the application. Should be provided by the caller.
Public propertydevice_id
The unique identifier for the user's device
Public propertydevice_os
The device operating system. Android, iOS, Windows, MacOS
Public propertydevice_token
The permanent device token for the user.
Public propertydevice_type
The device type name. iPhone 6s, Galaxy 7
Public propertylatitude
The latitude when the request is made.
Public propertylongitude
The longitude when the request is made.
Public propertyos_version
The device operating system version (9.0.4)
Public propertypassword
The user's password to authenticate this application to act on the user's behalf.
Public propertyuser_id
The user's account ID. Commonly the email address with which they signed up.
Public propertyuser_roles
The list of user roles. Typically these are obtained from the AuthenticationRolesView (default for which is the users_roles table).
Top
Methods
  NameDescription
Public methodStatic memberAuthenticate
Authenticates the user and returns the user context object.
Public methodClone
Creates a duplicate object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberPasswordLogValue
Obfuscate a password to a form appropriate for logging to the API log.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodStatic memberUnauthenticate
Unauthenticates the user (deletes their authenticated device token).
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also