Exemplo n.º 1
0
        public IActionResult Authenticate([FromBody] UserCred userCred)
        {
            var token = jwtAuthenticationManager.Authenticate(userCred.Username, userCred.Password);

            if (token == null)
            {
                return(Unauthorized());
            }
            return(Ok(token));
        }
Exemplo n.º 2
0
 public IActionResult Authenticate([FromBody] UserCred userCred)
 {
     return(Ok());
 }