Identity Server: Config clients to avoid consent screen on login process.

This commit is contained in:
Carlos Cañizares Estévez 2017-01-04 11:08:24 +01:00
parent 3e7da25226
commit 4b554f08de

View File

@ -42,6 +42,7 @@ namespace eShopOnContainers.Identity.Configuration
AllowedGrantTypes = GrantTypes.Implicit, AllowedGrantTypes = GrantTypes.Implicit,
AllowAccessTokensViaBrowser = true, AllowAccessTokensViaBrowser = true,
RedirectUris = { $"{clientsUrl["Spa"]}/" }, RedirectUris = { $"{clientsUrl["Spa"]}/" },
RequireConsent = false,
PostLogoutRedirectUris = { $"{clientsUrl["Spa"]}/" }, PostLogoutRedirectUris = { $"{clientsUrl["Spa"]}/" },
AllowedCorsOrigins = { $"{clientsUrl["Spa"]}" }, AllowedCorsOrigins = { $"{clientsUrl["Spa"]}" },
AllowedScopes = AllowedScopes =
@ -59,6 +60,7 @@ namespace eShopOnContainers.Identity.Configuration
AllowedGrantTypes = GrantTypes.Implicit, AllowedGrantTypes = GrantTypes.Implicit,
AllowAccessTokensViaBrowser = true, AllowAccessTokensViaBrowser = true,
RedirectUris = { "http://eshopxamarin/callback.html" }, RedirectUris = { "http://eshopxamarin/callback.html" },
RequireConsent = false,
PostLogoutRedirectUris = { "http://eshopxamarin/callback.html/index.html" }, PostLogoutRedirectUris = { "http://eshopxamarin/callback.html/index.html" },
AllowedCorsOrigins = { "http://eshopxamarin" }, AllowedCorsOrigins = { "http://eshopxamarin" },
AllowedScopes = AllowedScopes =
@ -79,6 +81,7 @@ namespace eShopOnContainers.Identity.Configuration
}, },
ClientUri = $"{clientsUrl["Mvc"]}", // public uri of the client ClientUri = $"{clientsUrl["Mvc"]}", // public uri of the client
AllowedGrantTypes = GrantTypes.Hybrid, AllowedGrantTypes = GrantTypes.Hybrid,
RequireConsent = false,
RedirectUris = new List<string> RedirectUris = new List<string>
{ {
$"{clientsUrl["Mvc"]}/signin-oidc", $"{clientsUrl["Mvc"]}/signin-oidc",