Example #1
0
        public async Task <string> AuthenticateUser(String mail, String password)
        {
            MemberShipProvider m = new MemberShipProvider();
            RSAKeyProvider     r = new RSAKeyProvider();

            _authService = new AuthService(m, r);
            string Token = await _authService.GenerateJwtTokenAsync(mail, password, MemberShipProvider.Role.USER);

            return(Token);
        }
Example #2
0
        public async Task <string> GetAuthenticate(String email, String password, String type)
        {
            MemberShipProvider m = new MemberShipProvider();
            RSAKeyProvider     r = new RSAKeyProvider();

            _authService = new AuthService(m, r);
            string Token = await _authService.GenerateJwtTokenAsync(email, password, type);

            return(Token);
        }