Browse Source

Custom internal oidc.

pull/352/head
Sebastian Stehle 7 years ago
parent
commit
70811355c8
  1. 10
      CHANGELOG.md
  2. 4
      src/Squidex/Areas/IdentityServer/Config/LazyClientStore.cs
  3. 1
      src/Squidex/Config/Authentication/IdentityServerServices.cs

10
CHANGELOG.md

@ -1,5 +1,11 @@
# Changelog
## v2.0.2 - 2019-04-XX
### Bugfixes
* **Identity-Server**: Use special callback path for internal odic to not interfere with external oidc and Orleans Dashboard.
## v2.0.1 - 2019-04-06
### Bugfixes
@ -14,7 +20,9 @@
* **Assets**: Dialogs to edit slugs.
* **UI**: Ability to host Squidex in a virtual directory.
**BREAKING CHANGE**: This release sets the clustering mode to 'Development' which means it is turned off. This makes operations simpler for most users.
### Breaking Changes
* This release sets the clustering mode to 'Development' which means it is turned off. This makes operations simpler for most users.
## v2.0.0 - 2018-04-01

4
src/Squidex/Areas/IdentityServer/Config/LazyClientStore.cs

@ -139,8 +139,8 @@ namespace Squidex.Areas.IdentityServer.Config
ClientSecrets = new List<Secret> { new Secret(Constants.InternalClientSecret) },
RedirectUris = new List<string>
{
urlsOptions.BuildUrl($"{Constants.PortalPrefix}/signin-oidc", false),
urlsOptions.BuildUrl($"{Constants.OrleansPrefix}/signin-oidc", false)
urlsOptions.BuildUrl($"{Constants.PortalPrefix}/signin-internal", false),
urlsOptions.BuildUrl($"{Constants.OrleansPrefix}/signin-internal", false)
},
AccessTokenLifetime = (int)TimeSpan.FromDays(30).TotalSeconds,
AllowedGrantTypes = GrantTypes.ImplicitAndClientCredentials,

1
src/Squidex/Config/Authentication/IdentityServerServices.cs

@ -49,6 +49,7 @@ namespace Squidex.Config.Authentication
options.Authority = apiAuthorityUrl;
options.ClientId = Constants.InternalClientId;
options.ClientSecret = Constants.InternalClientSecret;
options.CallbackPath = "/signin-internal";
options.RequireHttpsMetadata = identityOptions.RequiresHttps;
options.SaveTokens = true;
options.Scope.Add(Constants.PermissionsScope);

Loading…
Cancel
Save