public IAuthenticationResponse GetResponseAsync_ccp(IProtocolMessage msg, CancellationToken cancellationToken) { var message = ((Channel1)this.Channel).ReadFromRequestAsync1_ccp(msg, cancellationToken); PositiveAssertionResponse positiveAssertion; NegativeAssertionResponse negativeAssertion; IndirectSignedResponse positiveExtensionOnly; GlobalState.is_positive_assertion = positiveAssertion = message as PositiveAssertionResponse; if (GlobalState.is_positive_assertion != null) { var response = PositiveAuthenticationResponse1.CreateAsync_ccp(positiveAssertion, this, cancellationToken); ////Check for extensions //ClaimsResponse sreg = ExtensionsInteropHelper.UnifyExtensionsAsSreg(response, true); return(response); } else if ((negativeAssertion = message as NegativeAssertionResponse) != null) { return(new NegativeAuthenticationResponse(negativeAssertion)); } return(null); }
public static PositiveAuthenticationResponse1 CreateAsync_ccp( PositiveAssertionResponse response, OpenIdRelyingParty relyingParty, CancellationToken cancellationToken) { var result = new PositiveAuthenticationResponse1(response, relyingParty); result.VerifyDiscoveryMatchesAssertionAsync_ccp(relyingParty, cancellationToken); //Contract.Assert(false); return(result); }
public static PositiveAuthenticationResponse1 CreateAsync_ccp( PositiveAssertionResponse response, OpenIdRelyingParty relyingParty, CancellationToken cancellationToken) { var result = new PositiveAuthenticationResponse1(response, relyingParty); GlobalState.claimedEndPoint = result.Endpoint; result.VerifyDiscoveryMatchesAssertionAsync_ccp(relyingParty, cancellationToken); return(result); }