daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Jan 19th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void ConfigureServices(IServiceCollection services)
  2. {
  3.     services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
  4.         .AddJwtBearer(options =>
  5.         {
  6.             options.TokenValidationParameters = new TokenValidationParameters
  7.             {
  8.                 ValidateLifetime = true,
  9.                 ValidateIssuerSigningKey = true,
  10.                 IssuerSigningKey = new SymmetricSecurityKey(
  11.                     System.Convert.FromBase64String(_configuration["ApproovTokenSecret"]))
  12.             };
  13.         });
  14.  
  15.     services.AddMvc();
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top