public MessageStructures(SVX.Entity idpPrincipal) { authenticationRequest = new SVX.MessageStructure <AuthenticationRequest> { BrowserOnly = true }; authenticationRequest.AddSecret(nameof(AuthenticationRequest.CSRF_state), (msg) => new SVX.Principal[] { GenericAuth.GenericAuthStandards.GetUrlTargetPrincipal(msg.openid__return_to) }); authenticationResponse = new SVX.MessageStructure <AuthenticationResponse> { BrowserOnly = true }; authenticationResponse.AddMessagePayloadSecret(nameof(AuthenticationResponse.FieldsExpectedToBeSigned), (msg) => new SVX.Principal[] { }, getOpenID20SignedFieldsVerifier(), true); }
public MessageStructures(SVX.Entity idpPrincipal) : base(idpPrincipal) { authenticationResponse_with_id_token = new SVX.MessageStructure <AuthenticationResponse_with_id_token> { BrowserOnly = true }; authenticationResponse_with_id_token.AddMessagePayloadSecret(nameof(AuthenticationResponse_with_id_token.id_token), (msg) => new SVX.Principal[] { }, getTokenVerifier(), true); authenticationResponse_with_id_token.AddSecret(nameof(AuthenticationResponse_with_id_token.state), (msg) => new SVX.Principal[] { }); tokenResponse = new SVX.MessageStructure <TokenResponse>(); tokenResponse.AddMessagePayloadSecret(nameof(TokenResponse.id_token), (msg) => new SVX.Principal[] { }, getTokenVerifier(), false); }