Skip to content

Identity Apis

The documentation applies to:✅ v0.8.0

Default appsettings.json

{
  "ServiceOptions": {
    "Name": "Identity", // Unique name of service
    "Version": "v1.0", // Current version, should be matched with version folder
    "ServiceManagementEndpoint": "http://localhost:56456" // Service Management's endpoint
  },
  "ConfigurationServiceOptions": {
    "Endpoint": "http://localhost:56456/api/configurations", // Service Configuration's endpoint
    "RetryCount": 3, // Maximum number of call
    "DelayRetry": 500 // Duration between two failed calls, in miliseconds
  }
}

Extended appsettings.json

Location: src/web-apis/LetPortal.ServiceManagementApis/Files/Identity/v1.0

Note

We only highlight some options which are used for service's business. For another options, you need to check on Micro-Service Configuration

{
  "DatabaseOptions": {
    "ConnectionString": "mongodb://localhost:27017", // Identity Database Connection string
    "DataSource": "letportalidentity", // Database name
    "ConnectionType": "MongoDB" // MongoDB or SQLServer or PostgreSQL or MySQL
  },
  "JwtBearerOptions": {
    "Secret": "9f3acfa82146f5e4a7dabf17c2b63f538c0bcffb8872e889367df2e2c23cef94", // JWT Secret
    "Issuer": "letportal.app", // JWT Issuer
    "Audience": "LetPortal", // Audience
    "TokenExpiration": 30, // Token expired time, in minute
    "RefreshTokenExpiration": 45 // Refresh token expired time, in minute
  },
  "EmailOptions": {
    "SkipMode": true, // Turn on or off Send Email when user register or forgot password
    "Host": "Your Mail Server", // Your email server
    "Port": 587, // SMTP port
    "EnableSSL": true, // Allow SSL
    "UserName": "Your Mail Username", // SMTP Account
    "Password": "Your Mail Password", // SMTP Password
    "From": "[email protected]" // SMTP email
  }
}