IRemoteContext Type

The context to inject in a remote service to authorize remote functions.

Instance members

Instance member Description

this.Authorize

Full Usage: this.Authorize

Parameters:
    request : 'req -> Async<'resp> - The request handler to authorize.

Returns: 'req -> Async<'resp> The authorized request handler.
Modifiers: abstract
Type parameters: 'req, 'resp

Indicate that a remote function is only available to authenticated users.

request : 'req -> Async<'resp>

The request handler to authorize.

Returns: 'req -> Async<'resp>

The authorized request handler.

this.AuthorizeWith

Full Usage: this.AuthorizeWith

Parameters:
    authorizeData : seq<IAuthorizeData> - The authorization requirements.
    request : 'req -> Async<'resp> - The request handler to authorize.

Returns: 'req -> Async<'resp> The authorized request handler.
Modifiers: abstract
Type parameters: 'req, 'resp

Indicate that a remote function is available to users that match the given requirements.

authorizeData : seq<IAuthorizeData>

The authorization requirements.

request : 'req -> Async<'resp>

The request handler to authorize.

Returns: 'req -> Async<'resp>

The authorized request handler.