C# Class Microsoft.HockeyApp.AuthManager

Class for authentication of users with hockeyapp credentials
Show file Open project: bitstadium/HockeySDK-Windows

Protected Properties

Property Type Description
_authStatus IAuthStatus
_instance AuthManager

Private Properties

Property Type Description
AuthManager Microsoft.HockeyApp.Model
AuthenticateUser void
AuthenticateUser void
AuthenticateUser void
CheckAndHandleExistingTokenAsync Task
Dialog_CloseRequested void
ExecuteSuccessRedirectOrAction void
RemoveUserTokenAsync System.Threading.Tasks.Task
RetrieveProtectedStringAsync Task
StoreStringProtectedAsync System.Threading.Tasks.Task
UpdateAuthStatusAsync System.Threading.Tasks.Task

Public Methods

Method Description
RemoveUserToken ( ) : void

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken

RetrieveProtectedString ( string dataIdentifier ) : string

Retreive encrypted Data from the isolated storage

StoreStringProtected ( string dataIdentifier, string data ) : void

Store data encrypted in the isolatedStorage

Protected Methods

Method Description
ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void

Private Methods

Method Description
AuthManager ( ) : Microsoft.HockeyApp.Model
AuthenticateUser ( AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
AuthenticateUser ( System.Windows.Navigation.NavigationService navigationService, Uri successRedirect, AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
AuthenticateUser ( Uri successRedirect, AuthenticationMode authMode = AuthenticationMode.Authorize, TokenValidationPolicy tokenValidationPolicy = TokenValidationPolicy.EveryLogin, AuthValidationMode authValidationMode = AuthValidationMode.Graceful, string email = null, string appSecret = null ) : void
CheckAndHandleExistingTokenAsync ( AuthenticationMode authMode, AuthValidationMode validationMode ) : Task
Dialog_CloseRequested ( object sender, EventArgs e ) : void
ExecuteSuccessRedirectOrAction ( ) : void
RemoveUserTokenAsync ( ) : System.Threading.Tasks.Task

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken

RetrieveProtectedStringAsync ( string dataIdentifier ) : Task

Retreive encrypted Data from the isolated storage

StoreStringProtectedAsync ( string dataIdentifier, string data ) : System.Threading.Tasks.Task

Store data encrypted in the isolatedStorage

UpdateAuthStatusAsync ( IAuthStatus newStatus ) : System.Threading.Tasks.Task

Method Details

RemoveUserToken() public method

Removes the user token from the phone store, so on the next call to AuthenticateUser the Loginscreen is shown. Effectively this serves as a logout from your app. In most cases you want to call AuthenticateUser() immediatley after RemoveUserToken
public RemoveUserToken ( ) : void
return void

RetrieveProtectedString() public method

Retreive encrypted Data from the isolated storage
public RetrieveProtectedString ( string dataIdentifier ) : string
dataIdentifier string identifier for the data to read
return string

ShowLoginScreen() protected method

protected ShowLoginScreen ( AuthenticationMode authMode, string appSecret, string email, AuthValidationMode authValidationMode ) : void
authMode AuthenticationMode
appSecret string
email string
authValidationMode AuthValidationMode
return void

StoreStringProtected() public method

Store data encrypted in the isolatedStorage
public StoreStringProtected ( string dataIdentifier, string data ) : void
dataIdentifier string identifier for the data to write
data string the data to store
return void

Property Details

_authStatus protected property

protected IAuthStatus _authStatus
return IAuthStatus

_instance protected static property

protected static AuthManager,Microsoft.HockeyApp _instance
return AuthManager