Ditto 5.0.0
Loading...
Searching...
No Matches
DittoSDK.Auth.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...

Public Member Functions

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

Properties

string DatabaseId [get, set]
 Gets the identifier of the database the peer is attempting to authenticate with.
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.Auth.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