Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.4 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Squidex.Infrastructure;
using Squidex.Shared;
namespace Squidex.Web;
public static class Constants
{
public const string SecurityDefinition = "squidex-oauth-auth";
public const string ApiSecurityScheme = "API";
public const string ExternalScheme = "ExternalOidc";
public const string PrefixApi = "/api";
public const string PrefixIdentityServer = "/identity-server";
public const string PrefixSignin = "/signin";
public const string ScopePermissions = "permissions";
public const string ScopeProfile = "squidex-profile";
public const string ScopeRole = "role";
public const string ScopeApi = "squidex-api";
public const string ClaimTypeApp = "app/name";
public const string ClaimTypeRole = "app/role";
public static readonly string ClientFrontendId = DefaultClients.Frontend;
public static readonly string ClientInternalId = "squidex-internal";
public static readonly string ClientInternalSecret = "squidex-internal".ToSha256Base64();
}