Changeset View
Changeset View
Standalone View
Standalone View
services/identity/src/constants.rs
Show All 27 Lines | |||||
pub const NONCE_TABLE: &str = "identity-nonces"; | pub const NONCE_TABLE: &str = "identity-nonces"; | ||||
pub const NONCE_TABLE_PARTITION_KEY: &str = "nonce"; | pub const NONCE_TABLE_PARTITION_KEY: &str = "nonce"; | ||||
pub const NONCE_TABLE_CREATED_ATTRIBUTE: &str = "created"; | pub const NONCE_TABLE_CREATED_ATTRIBUTE: &str = "created"; | ||||
// Tokio | // Tokio | ||||
pub const MPSC_CHANNEL_BUFFER_CAPACITY: usize = 1; | pub const MPSC_CHANNEL_BUFFER_CAPACITY: usize = 1; | ||||
pub const IDENTITY_SERVICE_SOCKET_ADDR: &str = "[::]:50051"; | pub const IDENTITY_SERVICE_SOCKET_ADDR: &str = "[::]:50054"; | ||||
// Token | // Token | ||||
pub const ACCESS_TOKEN_LENGTH: usize = 512; | pub const ACCESS_TOKEN_LENGTH: usize = 512; | ||||
// Temporary config | // Temporary config | ||||
pub const AUTH_TOKEN: &str = "COMM_IDENTITY_SERVICE_AUTH_TOKEN"; | pub const AUTH_TOKEN: &str = "COMM_IDENTITY_SERVICE_AUTH_TOKEN"; | ||||
// Nonce | // Nonce | ||||
pub const NONCE_LENGTH: usize = 17; | pub const NONCE_LENGTH: usize = 17; |