public Task <SecuritySamlPrepareAuthenticationResponse> SamlPrepareAuthenticationAsync(Action <SecuritySamlPrepareAuthenticationRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SecuritySamlPrepareAuthenticationRequestDescriptor, SecuritySamlPrepareAuthenticationResponse>(descriptor)); }
public SecuritySamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action <SecuritySamlPrepareAuthenticationRequestDescriptor> configureRequest = null) { var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SecuritySamlPrepareAuthenticationRequestDescriptor, SecuritySamlPrepareAuthenticationResponse>(descriptor)); }