Browse Source

Use implicit consent for in-house applications.

pull/12624/head
Halil İbrahim Kalkan 4 years ago
parent
commit
e3002efa24
  1. 6
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs

6
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/OpenIddict/OpenIddictDataSeedContributor.cs

@ -88,7 +88,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
await CreateApplicationAsync( await CreateApplicationAsync(
name: webClientId, name: webClientId,
type: OpenIddictConstants.ClientTypes.Public, type: OpenIddictConstants.ClientTypes.Public,
consentType: OpenIddictConstants.ConsentTypes.Explicit, consentType: OpenIddictConstants.ConsentTypes.Implicit,
displayName: "Web Application", displayName: "Web Application",
secret: null, secret: null,
grantTypes: new List<string> //Hybrid flow grantTypes: new List<string> //Hybrid flow
@ -110,7 +110,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
await CreateApplicationAsync( await CreateApplicationAsync(
name: consoleAndAngularClientId, name: consoleAndAngularClientId,
type: OpenIddictConstants.ClientTypes.Confidential, type: OpenIddictConstants.ClientTypes.Confidential,
consentType: OpenIddictConstants.ConsentTypes.Explicit, consentType: OpenIddictConstants.ConsentTypes.Implicit,
displayName: "Console Test / Angular Application", displayName: "Console Test / Angular Application",
secret: configurationSection["MyProjectName_App:ClientSecret"] ?? "1q2w3e*", secret: configurationSection["MyProjectName_App:ClientSecret"] ?? "1q2w3e*",
grantTypes: new List<string> grantTypes: new List<string>
@ -158,7 +158,7 @@ public class OpenIddictDataSeedContributor : IDataSeedContributor, ITransientDep
await CreateApplicationAsync( await CreateApplicationAsync(
name: swaggerClientId, name: swaggerClientId,
type: OpenIddictConstants.ClientTypes.Confidential, type: OpenIddictConstants.ClientTypes.Confidential,
consentType: OpenIddictConstants.ConsentTypes.Explicit, consentType: OpenIddictConstants.ConsentTypes.Implicit,
displayName: "Blazor Application", displayName: "Blazor Application",
secret: configurationSection["MyProjectName_Swagger:ClientSecret"], secret: configurationSection["MyProjectName_Swagger:ClientSecret"],
grantTypes: new List<string> grantTypes: new List<string>

Loading…
Cancel
Save