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

◆ CustomAuthHandler()

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

Member Function Documentation

◆ AddNewAuthProvider()

void Photon.Common.Authentication.CustomAuthHandler.AddNewAuthProvider ( string  url,
string  nameValuePairAsQueryString,
bool  rejectIfUnavailable,
ClientAuthenticationType  authenticationType,
string  instanceName 
)
inlineprotected

◆ AuthenticateClient()

void Photon.Common.Authentication.CustomAuthHandler.AuthenticateClient ( ICustomAuthPeer  peer,
IAuthenticateRequest  authRequest,
AuthSettings  authSettings,
SendParameters  sendParameters,
object  state 
)
inline

◆ IncrementFailedCustomAuth()

virtual void Photon.Common.Authentication.CustomAuthHandler.IncrementFailedCustomAuth ( )
inlineprotectedvirtual

◆ InitializeFromConfig()

void Photon.Common.Authentication.CustomAuthHandler.InitializeFromConfig ( )
inline

◆ OnAuthenticateClient()

virtual void Photon.Common.Authentication.CustomAuthHandler.OnAuthenticateClient ( ICustomAuthPeer  peer,
IAuthenticateRequest  authRequest,
AuthSettings  authSettings,
SendParameters  sendParameters,
object  state 
)
inlineprotectedvirtual

Member Data Documentation

◆ authenticationServices

Dictionary<ClientAuthenticationType, ClientAuthenticationQueue> Photon.Common.Authentication.CustomAuthHandler.authenticationServices = new Dictionary<ClientAuthenticationType, ClientAuthenticationQueue>()
protected

◆ httpQueueCountersFactory

IHttpRequestQueueCountersFactory Photon.Common.Authentication.CustomAuthHandler.httpQueueCountersFactory
protected

◆ isAnonymousAccessAllowed

bool Photon.Common.Authentication.CustomAuthHandler.isAnonymousAccessAllowed
protected

◆ TotalInstance

CustomAuthResultCounters.Instance Photon.Common.Authentication.CustomAuthHandler.TotalInstance = CustomAuthResultCounters.GetInstance("_Total")
protected

Property Documentation

◆ IsAnonymousAccessAllowed

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

◆ IsClientAuthenticationEnabled

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