Photon Server API
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Photon.Common.Authentication.CustomAuthHandler Class Reference

Public Member Functions

 CustomAuthHandler (IHttpRequestQueueCountersFactory factory)
 
void AuthenticateClient (ICustomAuthPeer peer, IAuthenticateRequest authRequest, AuthSettings authSettings, SendParameters sendParameters, object state)
 
void InitializeFromConfig ()
 

Protected Member Functions

void AddNewAuthProvider (string url, string nameValuePairAsQueryString, bool rejectIfUnavailable, ClientAuthenticationType authenticationType, string instanceName)
 
virtual void OnAuthenticateClient (ICustomAuthPeer peer, IAuthenticateRequest authRequest, AuthSettings authSettings, SendParameters sendParameters, object state)
 
virtual void IncrementFailedCustomAuth ()
 

Protected Attributes

Dictionary< ClientAuthenticationType, ClientAuthenticationQueueauthenticationServices = new Dictionary<ClientAuthenticationType, ClientAuthenticationQueue>()
 
bool isAnonymousAccessAllowed
 
IHttpRequestQueueCountersFactory httpQueueCountersFactory
 
CustomAuthResultCounters.Instance TotalInstance = CustomAuthResultCounters.GetInstance("_Total")
 

Properties

bool IsAnonymousAccessAllowed [get, protected set]
 
bool IsClientAuthenticationEnabled [get, protected set]
 

Constructor & Destructor Documentation

Photon.Common.Authentication.CustomAuthHandler.CustomAuthHandler ( IHttpRequestQueueCountersFactory  factory)
inline

Member Function Documentation

void Photon.Common.Authentication.CustomAuthHandler.AddNewAuthProvider ( string  url,
string  nameValuePairAsQueryString,
bool  rejectIfUnavailable,
ClientAuthenticationType  authenticationType,
string  instanceName 
)
inlineprotected
void Photon.Common.Authentication.CustomAuthHandler.AuthenticateClient ( ICustomAuthPeer  peer,
IAuthenticateRequest  authRequest,
AuthSettings  authSettings,
SendParameters  sendParameters,
object  state 
)
inline
virtual void Photon.Common.Authentication.CustomAuthHandler.IncrementFailedCustomAuth ( )
inlineprotectedvirtual
void Photon.Common.Authentication.CustomAuthHandler.InitializeFromConfig ( )
inline
virtual void Photon.Common.Authentication.CustomAuthHandler.OnAuthenticateClient ( ICustomAuthPeer  peer,
IAuthenticateRequest  authRequest,
AuthSettings  authSettings,
SendParameters  sendParameters,
object  state 
)
inlineprotectedvirtual

Member Data Documentation

Dictionary<ClientAuthenticationType, ClientAuthenticationQueue> Photon.Common.Authentication.CustomAuthHandler.authenticationServices = new Dictionary<ClientAuthenticationType, ClientAuthenticationQueue>()
protected
IHttpRequestQueueCountersFactory Photon.Common.Authentication.CustomAuthHandler.httpQueueCountersFactory
protected
bool Photon.Common.Authentication.CustomAuthHandler.isAnonymousAccessAllowed
protected
CustomAuthResultCounters.Instance Photon.Common.Authentication.CustomAuthHandler.TotalInstance = CustomAuthResultCounters.GetInstance("_Total")
protected

Property Documentation

bool Photon.Common.Authentication.CustomAuthHandler.IsAnonymousAccessAllowed
getprotected set
bool Photon.Common.Authentication.CustomAuthHandler.IsClientAuthenticationEnabled
getprotected set