Interface IPostLoginPlugin
Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public interface IPostLoginPlugin : IPlugin
Properties
IsRequired
Declaration
bool IsRequired { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
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)