Show / Hide Table of Contents

Interface IPostLoginPlugin

Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public interface IPostLoginPlugin

Methods

GetEndpointUri(string, string)

Obtain endpoint for external service where browser should be redirected

Declaration
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)

Declaration
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
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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top