Class EmailConnectivityPostLoginPlugin
Post-login plugin that automatically provisions a Microsoft (Office 365) IMAP/SMTP inbox for users the first time they sign in, using AccessGateway to obtain OAuth tokens.
Implements
Inherited Members
Namespace: SuperOffice.Security.Login
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[PostLoginPlugin("EmailConnectivity")]
public class EmailConnectivityPostLoginPlugin : IPostLoginPlugin
Constructors
EmailConnectivityPostLoginPlugin(ILogger<EmailConnectivityPostLoginPlugin>)
Post-login plugin that automatically provisions a Microsoft (Office 365) IMAP/SMTP inbox for users the first time they sign in, using AccessGateway to obtain OAuth tokens.
Declaration
public EmailConnectivityPostLoginPlugin(ILogger<EmailConnectivityPostLoginPlugin> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger<EmailConnectivityPostLoginPlugin> | logger |
Fields
Name
Post-login plugin that automatically provisions a Microsoft (Office 365) IMAP/SMTP inbox for users the first time they sign in, using AccessGateway to obtain OAuth tokens.
Declaration
public const string Name = "EmailConnectivity"
Field Value
| Type | Description |
|---|---|
| string |
Methods
GetEndpointUri(string, string)
Obtain endpoint for external service where browser should be redirected
Declaration
public string GetEndpointUri(string callbackUri, string state)
Parameters
| Type | Name | Description |
|---|---|---|
| string | callbackUri | contains uri back to LoginControllers POST endpoint, already encoded |
| string | state | Must be returned by process callback and is url encoded |
Returns
| Type | Description |
|---|---|
| string | url the browser can be redirected to |
IsRequiredAsync(CancellationToken)
Post-login plugin that automatically provisions a Microsoft (Office 365) IMAP/SMTP inbox for users the first time they sign in, using AccessGateway to obtain OAuth tokens.
Declaration
public Task<bool> IsRequiredAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |
ProcessCallback(string, Dictionary<string, string>)
Handle payload and return state from external service
Declaration
public string ProcessCallback(string payload, Dictionary<string, string> args)
Parameters
| Type | Name | Description |
|---|---|---|
| string | payload | Body from Http Post message from external service |
| Dictionary<string, string> | args | url arguments |
Returns
| Type | Description |
|---|---|
| string | state as provided by GetEndpointUrl |