nettoyage

This commit is contained in:
2017-03-10 18:59:29 +01:00
parent 94ad1f3fca
commit d6f72ba20f
6 changed files with 10 additions and 114 deletions

View File

@ -76,19 +76,19 @@ namespace testOauthClient
LoginPath = new PathString("/signin"),
LogoutPath = new PathString("/signout")
});
var host = "http://dev.pschneider.fr";
app.UseOAuthAuthentication(
options =>
{
options.AuthenticationScheme = "Yavsc";
options.AuthorizationEndpoint = "http://dev.pschneider.fr/authorize";
options.TokenEndpoint = "http://dev.pschneider.fr/token";
options.AuthorizationEndpoint = $"{host}/authorize";
options.TokenEndpoint = $"{host}/dev.pschneider.fr/token";
options.CallbackPath = new PathString("/signin-yavsc");
options.ClientId = "21d8bd1b-4aed-4fcb-9ed9-00b43f6a8169";
options.ClientId = "[Your client Id]";
options.ClientSecret = "blih";
options.Scope.Add("profile");
options.SaveTokensAsClaims = true;
options.UserInformationEndpoint = "http://dev.pschneider.fr/api/me";
options.UserInformationEndpoint = $"{host}/api/me";
options.Events = new OAuthEvents
{
OnCreatingTicket = async context =>