Beispiel #1
0
        /// <summary>
        /// get secret from db with username
        /// </summary>
        /// <param name="username">username</param>
        /// <returns>returns secret that signed the jwt</returns>
        public string UsersSecret(string username)
        {
            // gateway
            LoginGateway auth = new LoginGateway();

            //dto to find secret by username
            LoginDTO dto = new LoginDTO()
            {
                UserName = username
            };

            // response dto
            ResponseDTO <string> response = auth.GetSaltFromTokenList(dto);

            // return secret
            return(response.Data);
        }