Пример #1
0
        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));
        }
Пример #2
0
        public SecuritySamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action <SecuritySamlPrepareAuthenticationRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecuritySamlPrepareAuthenticationRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecuritySamlPrepareAuthenticationRequestDescriptor, SecuritySamlPrepareAuthenticationResponse>(descriptor));
        }