Пример #1
0
        public async Task AuthenticateLocalAsync(LocalAuthenticationContext context)
        {
            var signInData = Mapper.Map <SignInMessage, SignInData>(context.SignInMessage);
            var result     = await domainService.AuthenticateLocalAsync(context.UserName, context.Password, signInData);

            context.AuthenticateResult = Mapper.Map <AuthenticationResult, AuthenticateResult>(result);
        }