Authorization Plug-in Overview

To create an authorization plug-in, you must implement the GetAuthorizedEvents and the AuthorizeEvent methods on the IWMSEventAuthorizationPlugin interface. The GetAuthorizedEvents method identifies the authorizable events that the plug-in can handle. The AuthorizeEvent method authorizes the event. The following table identifies the events that an authorization plug-in can subscribe to and authorize.

Event

Description

WMS_EVENT_CONNECT

A client requested a TCP connection to the server.

WMS_EVENT_BEGIN_USER_SESSION

A client requested a user session.

WMS_EVENT_LOGICAL_URL_TRANSFORM

The server is making a request to map the logical URL requested by a client to a publishing point.

WMS_EVENT_PHYSICAL_URL_TRANSFORM

The server is making a request to map the logical URL requested by a client to a physical URL.

WMS_EVENT_DESCRIBE

A client requested a description of the content.

WMS_EVENT_OPEN

This event is similar to the WMS_EVENT_DESCRIBE event except that WMS_EVENT_OPEN is guaranteed to be sent before the client requests specific streams from the server.

WMS_EVENT_SELECT_STREAMS

A client requested specific streams from the server.

WMS_EVENT_INITIALIZE_PLAYLIST

The server is making a request to create a playlist object.

WMS_EVENT_PLAY

A client requested that a server stream content to it.

WMS_EVENT_VALIDATE_PUSH_DISTRIBUTION

An encoder or upstream server is attempting to push content to the server.

Note

Authorization plug-ins and event notification plug-ins are considered to be part of a single category called event notification and authorization, but they are different. Both plug-ins receive and respond to event notifications from the server, but each plug-in handles a different type of event. Authorization events pertain to client requests that must be authorized. Notification events only indicate that a specific event occurred. Authorization plug-ins must either authorize or reject the request indicated by the authorization event. Event notification plug-ins do not perform authorization.

See Also

Concepts

Creating Authorization Plug-ins

IWMSEventAuthorizationPlugin Interface

IWMSEventAuthorizationPlugin Object (C#)

IWMSEventAuthorizationPlugin Object (Visual Basic .NET)