ITSGAuthenticateUserSink::ReauthenticateUser method (tsgauthenticationengine.h)

Notifies Remote Desktop Gateway (RD Gateway) that it should silently reauthenticate and reauthorize the user.

Syntax

HRESULT ReauthenticateUser(
  [in] ULONG_PTR context
);

Parameters

[in] context

A pointer to a ULONG that contains a value specific to this connection. Use the value that was passed by the AuthenticateUser method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

When this method is called, RD Gateway silently attempts to reauthenticate and reauthorize the user. If the attempt fails, it disconnects the user. The authentication plug-in can use this method to periodically reauthenticate the user as needed.

For a sample that uses the ReauthenticateUser method, see the Remote Desktop Gateway Pluggable Authentication and Authorization sample.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header tsgauthenticationengine.h

See also

ITSGAuthenticateUserSink