daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Dec 12th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void ConfigureServices(IServiceCollection services)
  2.     {
  3.  
  4.         services.AddAuthentication(options =>
  5.             {
  6.                 options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
  7.             })
  8.             .AddOpenIdConnect("Steam", options =>
  9.             {
  10.                 options.RequireHttpsMetadata = false;
  11.                 options.ClientId = Resources.SteamApiKey;
  12.                 options.Authority = Resources.SteamOpenIdUrl;
  13.                 options.Events.OnAuthorizationCodeReceived = OnAuthorizationCodeReceived;
  14.                 options.Events.OnRemoteFailure = OnRemoteFailure;
  15.                 options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
  16.                 options.GetClaimsFromUserInfoEndpoint = true;
  17.             })
  18.             .AddCookie();
  19.  
  20.         services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1).AddSessionStateTempDataProvider();
  21.         services.AddSession();
  22.  
  23.         // In production, the React files will be served from this directory
  24.         services.AddSpaStaticFiles(configuration =>
  25.         {
  26.             configuration.RootPath = "ClientApp/build";
  27.         });
  28.     }
  29.    
  30. <?xml version="1.0" encoding="UTF-8"?>
  31.   <xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
  32.     <XRD>
  33.       <Service priority="0">
  34.       <Type>http://specs.openid.net/auth/2.0/server</Type>
  35.       <URI>https://steamcommunity.com/openid/login</URI>
  36.     </Service>
  37.   </XRD>
  38. </xrds:XRDS>
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