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