Ditto 1.1.9
Public Member Functions | Properties | List of all members
DittoSDK.DittoAuthenticationRequestEventArgs Class Reference

Data passed to the Ditto.DittoIdentityProviderAuthenticationRequest event handler when a peer wishes to use the current device as an authentication server. More...

Inheritance diagram for DittoSDK.DittoAuthenticationRequestEventArgs:

Public Member Functions

void Allow (DittoAuthenticationSuccess success)
 Issue an authentication token for the remote peer with the device details and permissions specified. More...
 
void Deny ()
 Indicate that the authentication request was not acceptable and a token should not be issued.
 

Properties

string AppId [get, set]
 Gets the application ID for which the peer is requesting to authenticate.
 
ulong SiteId [get, set]
 Gets the Site ID that the remote peer is intending to use.
 
string ThirdPartyToken [get, set]
 Gets the arbitrary token that the peer is using to authenticate, if they are using token-based authentication.
 
string UserName [get, set]
 Gets the username that the peer is using to authenticate, if they are using username/password authentication.
 
string Password [get, set]
 Gets the password that the peer is using to authenticate, if they are using username/password authentication.
 

Detailed Description

Data passed to the Ditto.DittoIdentityProviderAuthenticationRequest event handler when a peer wishes to use the current device as an authentication server.

At least one subscriber should call Allow() or Deny() after evaluating the request, or else the login attempt will eventually time out.

Member Function Documentation

◆ Allow()

void DittoSDK.DittoAuthenticationRequestEventArgs.Allow ( DittoAuthenticationSuccess  success)
inline

Issue an authentication token for the remote peer with the device details and permissions specified.

Parameters
successMetadata and permissions for the new user