Diffusion .NET API  5.9.24
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResultSource Interface Reference

Extends IAuthenticationResult with "builder style" methods that allow a new authentication result to be created. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResultSource:
PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResult

Public Member Functions

IAuthenticationResultSource WithRoles (params string[] roles)
 Copies this authentication result with additional roles. This authentication result is left unmodified. More...
 
IAuthenticationResultSource WithProperty (string key, string value)
 Copies this authentication result with an additional property value. More...
 
IAuthenticationResultSource WithProperties (Dictionary< string, string > properties)
 Copies this authentication result with additional property values. More...
 

Additional Inherited Members

- Properties inherited from PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResult
HashSet< string > AdditionalRoles [get]
 Additional roles supplied by the authentication handler that allowed the authentication. More...
 
Dictionary< string, string > AdditionalProperties [get]
 Session property values that should be assigned to the session. More...
 

Detailed Description

Extends IAuthenticationResult with "builder style" methods that allow a new authentication result to be created.

Member Function Documentation

IAuthenticationResultSource PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResultSource.WithProperties ( Dictionary< string, string >  properties)

Copies this authentication result with additional property values.

New values will be added to any current values and if any specified key already had a value then it will be replaced.

Parameters
propertiesA map of properties used to add to or replace any current properties.
Returns
A new immutable result with the property values set.
IAuthenticationResultSource PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResultSource.WithProperty ( string  key,
string  value 
)

Copies this authentication result with an additional property value.

If the specified key already had a value then it will be replaced.

This authentication result is left unmodified.

Parameters
keyThe property key.
valueThe property value.
Returns
A new immutable result with the property value set.
IAuthenticationResultSource PushTechnology.ClientInterface.Client.Security.Authentication.IAuthenticationResultSource.WithRoles ( params string[]  roles)

Copies this authentication result with additional roles. This authentication result is left unmodified.

Parameters
roles
Returns

The documentation for this interface was generated from the following file: