Skip to content

Commit

Permalink
Fix startup / dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jptissot committed Apr 8, 2021
1 parent 5cb6985 commit 71ba2e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,11 @@ await shellScope.UsingAsync(async scope =>
return 0 ;
}

await _tenantHelper.EnableFeatureAsync("OrchardCore.OpenId.Client");

// Set the OpenId client settings based on
var settings = await _openIdClientService.GetSettingsAsync();

settings.Authority = authority;
settings.ClientId = saasConfigurationSettings.ClientId;
settings.Scopes = new string[]{OpenIddictConstants.Scopes.Profile, OpenIddictConstants.Scopes.Email};
settings.Scopes = new string[]{OpenIddictConstants.Scopes.Email};
settings.DisplayName = "Login"; //todo i18n?
settings.ResponseType = OpenIdConnectResponseType.Code;
settings.ResponseMode = OpenIdConnectResponseMode.FormPost;
Expand All @@ -117,6 +114,9 @@ await shellScope.UsingAsync(async scope =>

await _openIdClientService.UpdateSettingsAsync(settings);

// restart the tenant to reload the OpenId connect configuration
await _shellHost.ReleaseShellContextAsync(_shellSettings);

return 1;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Modules/StatCan.OrchardCore.SaaSConfiguration/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
Id = Constants.Features.SaaSConfigurationClient,
Name = "SaaS Configuration for client tenants",
Description = "SaaS tenant automatic configuration. For child tenants.",
Category = "Configuration"
// Dependencies = new[] { "OrchardCore.OpenId.Client" }
Category = "Configuration",
Dependencies = new[] { "OrchardCore.OpenId.Client" }
)]

0 comments on commit 71ba2e0

Please sign in to comment.