WSFederationAuthenticationModule.SecurityTokenValidated 이벤트

정의

STS(보안 토큰 서비스)에서 수신된 보안 토큰에 대해 유효성을 검사한 이후이며 세션 보안 토큰이 만들어지기 이전에 발생합니다.

public:
 event EventHandler<System::IdentityModel::Services::SecurityTokenValidatedEventArgs ^> ^ SecurityTokenValidated;
public event EventHandler<System.IdentityModel.Services.SecurityTokenValidatedEventArgs> SecurityTokenValidated;
member this.SecurityTokenValidated : EventHandler<System.IdentityModel.Services.SecurityTokenValidatedEventArgs> 
Public Custom Event SecurityTokenValidated As EventHandler(Of SecurityTokenValidatedEventArgs) 
Public Event SecurityTokenValidated As EventHandler(Of SecurityTokenValidatedEventArgs) 

이벤트 유형

예제

void WSFederationAuthenticationModule_SecurityTokenValidated(object sender, SecurityTokenValidatedEventArgs e)
{
    //All vlidation SecurityTokenHandler checks are successful
    System.Diagnostics.Trace.WriteLine("Handling SecurityTokenValidated event");
}

설명

이벤트 처리기를 추가하여 세션 토큰을 만들기 전에 STS(보안 토큰 서비스)에서 WS-Federation 로그인 응답 메시지를 처리하는 동안 만든 보안 주체를 수정할 수 있습니다. 이벤트 처리기에서 속성을 통해 ClaimsPrincipal 보안 주체에 액세스할 수 있습니다. 이벤트는 SecurityTokenValidated 취소할 수 있는 이벤트이며, 이벤트 처리기에서 속성을 true 로 설정 Cancel 하여 WS-Federation 로그인 응답 메시지의 처리를 종료할 수 있습니다.

이 이벤트는 STS(보안 토큰 서비스)에서 받은 WS-Federation 로그인 응답 메시지("wsignin1.0")를 처리할 때 이벤트 처리기 대리자 내부에서 OnAuthenticateRequest 발생합니다. 이는 wresult 또는 로그인 응답 메시지의 wresultptr 매개 변수에서 역직렬화된 보안 토큰이 유효성을 검사한 후 세션 보안 토큰이 생성되기 직전에 발생합니다.

적용 대상