Small sample updates.
This commit is contained in:
parent
94e0088eea
commit
909c342711
|
|
@ -72,13 +72,14 @@ namespace CookieSample
|
||||||
|
|
||||||
// You must first create an app with facebook and add it's ID and Secret to your config.json or user-secrets.
|
// You must first create an app with facebook and add it's ID and Secret to your config.json or user-secrets.
|
||||||
// https://developers.facebook.com/apps/
|
// https://developers.facebook.com/apps/
|
||||||
//app.UseFacebookAuthentication(new FacebookOptions
|
app.UseFacebookAuthentication(new FacebookOptions
|
||||||
//{
|
{
|
||||||
// AppId = Configuration["facebook:appid"],
|
AppId = Configuration["facebook:appid"],
|
||||||
// AppSecret = Configuration["facebook:appsecret"],
|
AppSecret = Configuration["facebook:appsecret"],
|
||||||
// Scope = { "email" },
|
Scope = { "email" },
|
||||||
// Fields = { "name", "email" }
|
Fields = { "name", "email" },
|
||||||
//});
|
SaveTokens = true,
|
||||||
|
});
|
||||||
|
|
||||||
// See config.json
|
// See config.json
|
||||||
app.UseOAuthAuthentication(new OAuthOptions
|
app.UseOAuthAuthentication(new OAuthOptions
|
||||||
|
|
@ -100,6 +101,7 @@ namespace CookieSample
|
||||||
{
|
{
|
||||||
ClientId = Configuration["google:clientid"],
|
ClientId = Configuration["google:clientid"],
|
||||||
ClientSecret = Configuration["google:clientsecret"],
|
ClientSecret = Configuration["google:clientsecret"],
|
||||||
|
SaveTokens = true,
|
||||||
Events = new OAuthEvents()
|
Events = new OAuthEvents()
|
||||||
{
|
{
|
||||||
OnRemoteFailure = ctx =>
|
OnRemoteFailure = ctx =>
|
||||||
|
|
@ -118,6 +120,7 @@ namespace CookieSample
|
||||||
{
|
{
|
||||||
ConsumerKey = Configuration["twitter:consumerkey"],
|
ConsumerKey = Configuration["twitter:consumerkey"],
|
||||||
ConsumerSecret = Configuration["twitter:consumersecret"],
|
ConsumerSecret = Configuration["twitter:consumersecret"],
|
||||||
|
SaveTokens = true,
|
||||||
Events = new TwitterEvents()
|
Events = new TwitterEvents()
|
||||||
{
|
{
|
||||||
OnRemoteFailure = ctx =>
|
OnRemoteFailure = ctx =>
|
||||||
|
|
@ -195,6 +198,7 @@ namespace CookieSample
|
||||||
TokenEndpoint = "https://github.com/login/oauth/access_token",
|
TokenEndpoint = "https://github.com/login/oauth/access_token",
|
||||||
UserInformationEndpoint = "https://api.github.com/user",
|
UserInformationEndpoint = "https://api.github.com/user",
|
||||||
ClaimsIssuer = "OAuth2-Github",
|
ClaimsIssuer = "OAuth2-Github",
|
||||||
|
SaveTokens = true,
|
||||||
// Retrieving user information is unique to each provider.
|
// Retrieving user information is unique to each provider.
|
||||||
Events = new OAuthEvents
|
Events = new OAuthEvents
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue