Class ManualAuthCoreRestProxyHandler
Core rest proxy that allows authentication to be passed along
Inheritance
System.Object
ManualAuthCoreRestProxyHandler
Implements
System.Web.IHttpHandler
System.Web.Routing.IRouteHandler
System.Web.SessionState.IRequiresSessionState
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Client.Rest
Assembly: ImageVault.Client.dll
Syntax
public class ManualAuthCoreRestProxyHandler : CoreRestProxyHandler
Constructors
ManualAuthCoreRestProxyHandler(String)
Creates the Handler
Declaration
public ManualAuthCoreRestProxyHandler(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Methods
CopyRequestHeaders(String, String, IHttpWebRequest)
If special handling using request header copying should occur, this method can be implemented
Declaration
protected override bool CopyRequestHeaders(string name, string value, IHttpWebRequest dest)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The request header name to copy |
System.String | value | The request header value to copy |
IHttpWebRequest | dest | The destination request to copy (or not) the header to |
Returns
Type | Description |
---|---|
System.Boolean | True if copy was handled, false if copy wasn't handled and normal copy rules should occur. |
Overrides
GetAuthorizationValue(HttpRequestBase, Boolean)
Retrieves the authorization value for the Authorization header for the real request.
Declaration
protected override string GetAuthorizationValue(HttpRequestBase request, bool forceNewAuthToken)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpRequestBase | request | |
System.Boolean | forceNewAuthToken | If a new token should be forced |
Returns
Type | Description |
---|---|
System.String |
Overrides
Remarks
Default behaviour will use the current logged in user and get an auth token from the core server
Implements
System.Web.IHttpHandler
System.Web.Routing.IRouteHandler
System.Web.SessionState.IRequiresSessionState