85 lines
2.5 KiB
C#
85 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Taloyhtio.GeneralSSO.Server.CodeFiles.Common
|
|
{
|
|
public class Constants
|
|
{
|
|
public class DataAccess
|
|
{
|
|
public class Client
|
|
{
|
|
public const int CLIENT_IDENTIFIER_MAX_LEN = 256;
|
|
public const int CLIENT_SECRET_MAX_LEN = 256;
|
|
public const int CALLBACK_MAX_LEN = 4000;
|
|
public const int NAME_MAX_LEN = 256;
|
|
}
|
|
|
|
public class Nonce
|
|
{
|
|
public const int CONTEXT_MAX_LEN = 256;
|
|
public const int CODE_MAX_LEN = 256;
|
|
}
|
|
|
|
public class ClientAuthorization
|
|
{
|
|
public const int USER_ID_MAX_LEN = 256;
|
|
public const int SCOPE_MAX_LEN = 256;
|
|
}
|
|
|
|
public class SymmetricCryptoKey
|
|
{
|
|
public const int BUCKET_MAX_LEN = 256;
|
|
public const int HANDLE_MAX_LEN = 256;
|
|
public const int SECRET_MAX_LEN = 1056;
|
|
}
|
|
|
|
public class Log
|
|
{
|
|
public const int EVENT_TYPE_MAX_LEN = 16;
|
|
public const int COMPONENT_MAX_LEN = 32;
|
|
}
|
|
}
|
|
|
|
public class LogComponents
|
|
{
|
|
public const string CLIENT_ENTITY = "ClientEntity";
|
|
public const string RESOURCE_SERVER = "ResourceServer";
|
|
public const string DOTNETOPENAUTH = "DotNetOpenAuth";
|
|
}
|
|
|
|
public class QueryString
|
|
{
|
|
//public const string USER_ID = "user_id";
|
|
}
|
|
|
|
public class OAuth
|
|
{
|
|
public const int DEFAULT_TOKEN_LIFETIME_MINUTES = 2;
|
|
}
|
|
|
|
public class Condo
|
|
{
|
|
public const string SHORT_NAME = "CondoShortName";
|
|
}
|
|
|
|
public class Clients
|
|
{
|
|
public const string COLUMN_ID = "Id";
|
|
public const string COLUMN_NAME = "Name";
|
|
public const string COLUMN_CALLBACK = "Callback";
|
|
public const string COLUMN_CLIENT_IDENTIFIER = "ClientIdentifier";
|
|
}
|
|
|
|
public class Users
|
|
{
|
|
public const string GENERAL_USER_EMAIL = "asiakaspalvelu@taloyhtio.info";
|
|
public const string GENERAL_LANDLORD_NAME_TEMPLATE = "{0} osakas";
|
|
public const string GENERAL_TENANT_EMAIL_TEMPLATE = "{0}_asukas@taloyhtio.info";
|
|
public const string GENERAL_LANDLORD_EMAIL_TEMPLATE = "{0}_osakas@taloyhtio.info";
|
|
}
|
|
}
|
|
}
|