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

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

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