예제 #1
0
        public async Task <ClaimsPrincipal> Validate(TokenController controller, string token)
        {
            var service = getService(controller.Type);

            return(await service.Validate(controller.Configuration, token));
        }
예제 #2
0
        public async Task <string> Generate(TokenController controller, IEnumerable <Claim> claims)
        {
            var service = getService(controller.Type);

            return(await service.Generate(controller.Configuration, claims));
        }