Occurs after a security token that was received from the security token service (STS) has been validated but before the session security token is created.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
You can add an event handler to modify the principal created while processing a WS-Federation sign-in response message from a security token service (STS) before it is used to create the session token. In the event handler, you can access the principal through the ClaimsPrincipal property. The event is a cancelable event, you can set the Cancel property to true in an event handler to terminate processing of the WS-Federation sign-in response message.
This event is raised from inside the OnAuthenticateRequest event-handler delegate when processing a WS-Federation sign-in response message (“wsignin1.0”) received from the security token service (STS). It is raised just after the security token that was deserialized from the wresult or the wresultptr parameter in the sign-in response message has been validated, and before the session security token is created.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.