Repository navigation
C.1. User portal configuration
All supported settings for the project generator JbtiEvolution.OraklLearn.Api are in the appsettings.json file.
| Key | Type | Description | Default |
|---|---|---|---|
| ApplicationInsights.ConnectionString | string | A string containing all the information required to initialize Azure Application Insights monitoring. | <ConnectionString> |
"ApplicationInsights": {
"ConnectionString": "<APPLICATION_INSIGHTS_CONNECTION_STRING>"
}| Key | Type | Description | Default |
|---|---|---|---|
| Logging.LogLevel.Default | string | .Net logging | Information |
| Logging.LogLevel.Microsoft.AspNetCore | string | .Net logging | Warning |
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}Settings related to API that do not belong to a dedicated section are defined here. This section covers miscellaneous variables.
| Key | Type | Description | Default |
|---|---|---|---|
| ApiSettings.LogoutRedirectUrl | string | URL to redirect the user after logged out. | _/portal.html |
| ApiSettings.BookContentSasMinutes | integer | Duration in minutes for generated SAS URLs used to access book content. This value is used for all content types by modules such as the viewer, editor, exam module, and others. | 1440 |
| ApiSettings.BookCachingCopierMaxMinutes | integer | Maximum duration, in minutes, allowed to copy a file to the cache. This value is combined to BookCachingCopierParallelism. |
2 |
| ApiSettings.BookCachingCopierParallelism | integer | When a user opens a book for editing, all multimedia content is copied to the user cache. This value defines the maximum number of copy operations that can run in parallel. Use a reasonable value to avoid generating too many HTTP requests against Azure resources. This value is combined toBookCachingCopierMaxMinutes. |
20 |
| ApiSettings.BookEditorUploadUrlSasMinutes | integer | Duration in minutes for upload SAS URLs used by the book editor. It is used for uploading images. | 5 |
| ApiSettings.ProfileEventHistory | integer | Number of the most recent profile events returned to the user. | 40 |
| ApiSettings.AdminPortalUrl | string | The URL used to access the admin portal site. | https://admin.server.com |
"ApiSettings": {
"LogoutRedirectUrl": "/promo/index.html",
"BookContentSasMinutes": 1440,
"BookCachingCopierMaxMinutes": 2,
"BookCachingCopierParallelism": 20,
"BookEditorUploadUrlSasMinutes": 5,
"ProfileEventHistory": 40,
"AdminPortalUrl": "https://admin.orakllearn.example.com"
}| Key | Type | Description | Default |
|---|---|---|---|
| ExamManagerSettings.MaxExamsCountPolicy | integer | Maximum number of exams allowed when a user creates a Revision Project from the Study for an exam module. | 3 |
"ExamManagerSettings": {
"MaxExamsCountPolicy": 3
}| Key | Type | Description | Default |
|---|---|---|---|
| RevisionSettings.BlockSize | integer | Specifies how many questions are returned to the user interface at a time when a user is practicing a Revision Project. Returning questions in blocks improves client-side performance when the user clicks Next question and helps reduce lag. The next block is automatically loaded when the user approaches the end of the current block. | 4 |
"RevisionSettings": {
"BlockSize": 4
}List of effort-level thresholds and ratios used during revision processing. Max and Ratio determine how many questions are shown to the user in a practice session.
When the user selects an effort level for an exam, Max sets the target number of questions for the session. If the revision project contains an unusually large number of questions for the selected level, Ratio is used to calculate an adjusted question count. The final question count is the greater of Max and the ratio-based value, rounded to the nearest multiple of 5. This ensures the session size remains aligned with the selected effort level while accounting for the total number of available questions.
Note: Only a fixed number of 3 levels is supported. Any additional levels will be ignored.
| Key | Type | Description | Default |
|---|---|---|---|
| RevisionSettings.EffortLevels | array | ||
| RevisionSettings.EffortLevels[0].Max | integer | Question count for effort level 1. | 25 |
| RevisionSettings.EffortLevels[0].Ratio | number | Ratio applied for effort level 1. | 0.1 |
| RevisionSettings.EffortLevels[1].Max | integer | Question count for effort level 2. | 45 |
| RevisionSettings.EffortLevels[1].Ratio | number | Ratio applied for effort level 2. | 0.18 |
| RevisionSettings.EffortLevels[2].Max | integer | Question count for effort level 3. | 65 |
| RevisionSettings.EffortLevels[2].Ratio | number | Ratio applied for effort level 3. | 0.25 |
"EffortLevels": [
{
"Max": 25,
"Ratio": 0.1
},
{
"Max": 45,
"Ratio": 0.18
},
{
"Max": 65,
"Ratio": 0.25
}
]The source code has been tested with Azure Entra ID. All values relate to the integration using an Entra ID App Registration.
| Key | Type | Description | Default |
|---|---|---|---|
| AzureAd.Instance | string | Microsoft Entra ID / Azure AD authority base URL. This value should not be changed. | https://login.microsoftonline.com/ |
| AzureAd.Domain | string | Azure AD tenant domain. | <domain-in-azure> |
| AzureAd.TenantId | string | Azure AD tenant identifier. | <tenant-id> |
| AzureAd.ClientId | string | Application client ID registered in Azure AD. | client-id> |
| AzureAd.CallbackPath | string | OpenID Connect callback path used after authentication. Use the public URL when reaching through Azure Application Proxy. | /signin-oidc |
| AzureAd.Audience | string | Expected audience for API authentication tokens. This value is the same of TenantId. |
<client-id> |
| AzureAd.Scope | string | API scope used for authorization. The value is defined to App Registrations > Expose an API > Application ID URI. | <scope> |
| AzureAd.ClientSecret | string | Secret used for Client Credentials Flow access. The API requests a new access token to connect to a downstream back-end API, such as the catalog for books and exams. | <secret> |
Refer to the Microsoft documentation for guidance on managing App Registration
"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"Domain": "<AZURE_AD_DOMAIN>",
"TenantId": "<AZURE_AD_TENANT_ID>",
"ClientId": "<AZURE_AD_CLIENT_ID>",
"CallbackPath": "/signin-oidc",
"Audience": "<AZURE_AD_AUDIENCE>",
"Scope": "<AZURE_AD_SCOPE>",
"ClientSecret": "<AZURE_AD_CLIENT_SECRET>"
}Among all OpenID claims, a minimum set of claims is available when using Microsoft Entra ID as the OpenID Connect issuer.
| Key | Type | Description | Default |
|---|---|---|---|
| OpenId.UserIdentityIdClaim | string | The claim name added to the access token by the OpenID issuer to identify the signed-in user. With Microsoft Entra ID, preferred_username is commonly used as a human-readable username, such as an email address or UPN. |
preferred_username |
| OpenId.UserDisplayNameClaim | string | The claim name added to the access token by the OpenID issuer that contains the display name of the signed-in user. With Microsoft Entra ID, this usually maps to the user’s full display name. | name |
| OpenId.TenantIdClaim | string | The claim name that provides the unique organization ID. In the Azure context, this corresponds to the globally unique tenant ID. |
http://schemas.microsoft.com/ identity/claims/tenantid |
| OpenId.UserObjectIdClaim | string | The claim name that provides the unique user ID. |
http://schemas.microsoft.com/ identity/claims/objectidentifier |
| OpenId.FirstNameClaim | string | The claim name that provides the user's first name. |
http://schemas.xmlsoap.org/ ws/2005/05/identity/claims/surname |
| OpenId.LastNameClaim | string | The claim name that provides the user's last name. |
http://schemas.xmlsoap.org/ ws/2005/05/identity/claims/givenname |
| OpenId.PublicPages | array(string) | When a user requests a page, the OpenID access token is validated to determine whether the page belongs to a secured area. Public pages can be accessed without authentication. | / /portal.html /index.html /promo |
| OpenId.ProtectedPages | array(string) | When a user requests a protected page, the OpenID access token is validated before access is granted. If the token is valid, the user can access the page; otherwise, authentication is required. | /about.html /bookeditor.html /bookreader.html /exameditor.html /examrevision.html /generator.html /settings.html |
"OpenId": {
"UserIdentityIdClaim": "preferred_username",
"UserDisplayNameClaim": "name",
"PublicPages": [
"/",
"/index.html",
"/promo"
],
"ProtectedPages": [
"/about.html",
"/bookeditor.html",
"/bookreader.html",
"/exameditor.html",
"/examrevision.html",
"/generator.html",
"/settings.html"
]
}| Key | Type | Description | Default |
|---|---|---|---|
| AllowedHosts | string | Hosts allowed by the ASP.NET Core application. * allows all hosts. |
* |
"AllowedHosts": "*"There is a dedicated instance responsible for managing the global catalog, including all books and exams available to everyone. This API is exposed through the API service, which acts as a proxy and calls the Catalog and Search Engine instance.
This API can also be used by external systems, which is why it is hosted in a separate instance from the main API project.
| Key | Type | Description | Default |
|---|---|---|---|
| Catalog.BaseUrl | string | The address used to connect to the backend Catalog API. | https://... |
| Catalog.Scopes | Array(string) | List of required OpenID scopes for the backend Catalog API. |
"Catalog": {
"BaseUrl": "https://catalog.orakllearn.example.com",
"Scopes": [
"<CATALOG_API_SCOPE>"
]
}All contents, traces and other data are stored in a dedicated Azure Blob Storage container. This section contains the configuration required to connect to the storage.
| Key | Type | Description | Default |
|---|---|---|---|
| Storage.AccountName | string | The storage account name. | |
| Storage.AccountKey | string | The access key retrieved from the Azure Storage Account resource. | |
| Storage.ProfileContainer | string | The blob container name for user and system profiles. | |
| Storage.TracingContainer | string | The blob container name for transaction trace data, including request, response, and trace details. When a user triggers an event-driven message, a transaction is created with all required processing details. The generator processes the transaction, and the WebApi reads its state and data to display the results in the web interface. |
|
| Storage.CatalogContainer | string | The blob container name for storing books and exams, including multimedia content. | |
| Storage.RevisionProjectContainer | string | The blob container name for revision projects created by users while practicing exams, stored in a dedicated Azure Blob Storage container. | |
| Storage.ExamEditorCachingContainer | string | The blob container name for cached exam edition data, stored in a dedicated Azure Blob Storage container. | |
| Storage.BookEditorCachingContainer | string | The blob container name for cached book edition data, stored in a dedicated Azure Blob Storage container. |
"Storage": {
"AccountName": "orakllearn",
"AccountKey": "<STORAGE_ACCOUNT_KEY>",
"ProfileContainer": "profile",
"TracingContainer": "transaction-tracing",
"CatalogContainer": "catalog",
"RevisionProjectContainer": "exam-revision-project",
"ExamEditorCachingContainer": "exam-editor-caching",
"BookEditorCachingContainer": "book-editor-caching"
}The queues defined in Azure Service Bus are used to distribute messaging traffic based on the expected processing time and workload.
You can configure each queue according to your own topology and processing requirements. The table below provides the recommended configuration to properly distribute the workload.
| Key | Type | Description | Default |
|---|---|---|---|
| ServiceBus:Queues | array | List of Azure Service Bus queue configurations. | |
| ServiceBus.Queues[0].QueueName | string | Queue name for long-running event-driven messages. | slow |
| ServiceBus.Queues[0].ConnectionString | string | Connection string having send right. |
|
| ServiceBus.Queues[0].IsDefault | boolean | Indicates whether this queue is the default for messages not specified in the ClassMap. Only one queue can be set as the default. |
true |
| ServiceBus.Queues[1].QueueName | string | Queue name for moderated-running event-driven messages. | moderated |
| ServiceBus.Queues[1].ConnectionString | string | Connection string having send right. |
|
| ServiceBus.Queues[1].IsDefault | boolean | false | |
| ServiceBus.Queues[2].QueueName | string | Queue name for fast-running event-driven messages. | fast |
| ServiceBus.Queues[2].ConnectionString | string | Connection string having send right. |
|
| ServiceBus.Queues[2].IsDefault | boolean | false |
"Queues": [
{
"QueueName": "slow",
"ConnectionString": "<SERVICEBUS_SLOW_CONNECTION_STRING>",
"IsDefault": true
},
{
"QueueName": "indexing",
"ConnectionString": "<SERVICEBUS_INDEXING_CONNECTION_STRING>",
"IsDefault": false
}
]ClassMap defines the rules that route event-driven messages to the appropriate bound queue. It is not mandatory to document every message. If a message is not defined in the ClassMap, the default queue is used. The table below provides the recommended mapping configuration to properly distribute the workload.
A message ID must be prefixed by JbtiEvolution.OraklLearn.Types.Messaging..
| Key | Type | Description | Default |
|---|---|---|---|
| ServiceBus:ClassMap | array | List of maps | |
| ServiceBus.ClassMap[0].ClassType | string | JbtiEvolution.OraklLearn.Types.Messaging.BookGeneratorMessageV1 | |
| ServiceBus.ClassMap[0].QueueName | string | slow | |
| ServiceBus.ClassMap[1].ClassType | string | JbtiEvolution.OraklLearn.Types.Messaging.FinetunePromptMessageV1 | |
| ServiceBus.ClassMap[1].QueueName | string | fast | |
| ServiceBus.ClassMap[2].ClassType | string | JbtiEvolution.OraklLearn.Types.Messaging.ExamReviewMessageV1 | |
| ServiceBus.ClassMap[2].QueueName | string | fast | |
| ServiceBus.ClassMap[3].ClassType | string | JbtiEvolution.OraklLearn.Types.Messaging.SpellingCheckMDMessageV1 | |
| ServiceBus.ClassMap[3].QueueName | string | fast | |
| ServiceBus.ClassMap[4].ClassType | string | JbtiEvolution.OraklLearn.Types.Messaging.BookRegeneratorMessageV1 | |
| ServiceBus.ClassMap[4].QueueName | string | slow |
"ClassMap": [
{
"ClassType": "JbtiEvolution.OraklLearn.Types.Messaging.BookGeneratorMessageV1",
"QueueName": "slow"
},
{
"ClassType": "JbtiEvolution.OraklLearn.Types.Messaging.FinetunePromptMessageV1",
"QueueName": "fast"
}
]The book editor offers a feature that automatically generates titles, content, and/or external references. To perform effectively, the writing processor needs sufficient data to understand the context.
| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.ContentWriterRequest.ChapterCount.Minimum | integer | Minimum number of existing chapters required before running the writer. This provides enough contextual information. | 4 |
| ModelPolicies.ContentWriterRequest.ChapterCount.Maximum | integer | Maximum number of existing chapters required before running the writer. | 30 |
| ModelPolicies.ContentWriterRequest.ContentLength.Minimum | integer | Minimum content length the writer must generate. This provides enough contextual information. | 100 |
| ModelPolicies.ContentWriterRequest.ContentLength.Maximum | integer | Maximum content length the writer can generate. | 15000 |
| ModelPolicies.ContentWriterRequest.ExtRefsMinContentLength | integer | Minimum content length required to include external references. External references can only be determined if enough text is provided. | 350 |
"ContentWriterRequest": {
"ChapterCount": {
"Minimum": 4,
"Maximum": 30
},
"ContentLength": {
"Minimum": 100,
"Maximum": 80000
},
"ExtRefsMinContentLength": 350
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.TitleLength.Minimum | integer | Minimum allowed book title length. | 30 |
| ModelPolicies.Book.TitleLength.Maximum | integer | Maximum allowed book title length. | 120 |
| ModelPolicies.Book.SummaryLength.Minimum | integer | Minimum allowed book summary length. | 100 |
| ModelPolicies.Book.SummaryLength.Maximum | integer | Maximum allowed book summary length. | 6000 |
"Book": {
"TitleLength": {
"Minimum": 30,
"Maximum": 120
},
"SummaryLength": {
"Minimum": 100,
"Maximum": 6000
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.Tags.Length.Minimum | integer | Minimum allowed length for each book tag. | 2 |
| ModelPolicies.Book.Tags.Length.Maximum | integer | Maximum allowed length for each book tag. | 35 |
| ModelPolicies.Book.Tags.Count.Minimum | integer | Minimum number of tags allowed per book. | 1 |
| ModelPolicies.Book.Tags.Count.Maximum | integer | Maximum number of tags allowed per book. | 10 |
"Tags": {
"Length": {
"Minimum": 2,
"Maximum": 35
},
"Count": {
"Minimum": 1,
"Maximum": 10
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.Chapters.TitleLength.Minimum | integer | Minimum allowed chapter title length. | 5 |
| ModelPolicies.Book.Chapters.TitleLength.Maximum | integer | Maximum allowed chapter title length. | 120 |
| ModelPolicies.Book.Chapters.Count.Minimum | integer | Minimum number of chapters allowed in a book. | 1 |
| ModelPolicies.Book.Chapters.Count.Maximum | integer | Maximum number of chapters allowed in a book. | 8 |
| ModelPolicies.Book.Chapters.ContentLength.Minimum | integer | Minimum allowed chapter content length. | 100 |
| ModelPolicies.Book.Chapters.ContentLength.Maximum | integer | Maximum allowed chapter content length. | 15000 |
"Chapters": {
"TitleLength": {
"Minimum": 5,
"Maximum": 120
},
"Count": {
"Minimum": 1,
"Maximum": 8
},
"ContentLength": {
"Minimum": 100,
"Maximum": 40000
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.Synopsys.Length.Minimum | integer | Minimum allowed synopsis item length. | 3 |
| ModelPolicies.Book.Synopsys.Length.Maximum | integer | Maximum allowed synopsis item length. | 80 |
| ModelPolicies.Book.Synopsys.Count.Minimum | integer | Minimum number of synopsis items allowed. | 1 |
| ModelPolicies.Book.Synopsys.Count.Maximum | integer | Maximum number of synopsis items allowed. | 10 |
"Synopsys": {
"Length": {
"Minimum": 3,
"Maximum": 80
},
"Count": {
"Minimum": 1,
"Maximum": 10
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.Sections.TitleLength.Minimum | integer | Minimum allowed section title length. | 5 |
| ModelPolicies.Book.Sections.TitleLength.Maximum | integer | Maximum allowed section title length. | 120 |
| ModelPolicies.Book.Sections.Count.Minimum | integer | Minimum number of sections allowed. | 1 |
| ModelPolicies.Book.Sections.Count.Maximum | integer | Maximum number of sections allowed. | 5 |
"Sections": {
"TitleLength": {
"Minimum": 5,
"Maximum": 120
},
"Count": {
"Minimum": 1,
"Maximum": 5
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.Quizzes.QuestionCount.Minimum | integer | Minimum number of quiz questions allowed. | 2 |
| ModelPolicies.Book.Quizzes.QuestionCount.Maximum | integer | Maximum number of quiz questions allowed. | 10 |
| ModelPolicies.Book.Quizzes.QuestionLength.Minimum | integer | Minimum allowed quiz question length. | 20 |
| ModelPolicies.Book.Quizzes.QuestionLength.Maximum | integer | Maximum allowed quiz question length. | 200 |
| ModelPolicies.Book.Quizzes.AnswerCount.Minimum | integer | Minimum number of answers allowed per quiz question. | 2 |
| ModelPolicies.Book.Quizzes.AnswerCount.Maximum | integer | Maximum number of answers allowed per quiz question. | 6 |
| ModelPolicies.Book.Quizzes.AnswerLength.Minimum | integer | Minimum allowed quiz answer length. | 1 |
| ModelPolicies.Book.Quizzes.AnswerLength.Maximum | integer | Maximum allowed quiz answer length. | 80 |
"Quizzes": {
"QuestionCount": {
"Minimum": 2,
"Maximum": 10
},
"QuestionLength": {
"Minimum": 20,
"Maximum": 200
},
"AnswerCount": {
"Minimum": 2,
"Maximum": 6
},
"AnswerLength": {
"Minimum": 1,
"Maximum": 80
}
}| Key | Type | Description | Default |
|---|---|---|---|
| ModelPolicies.Book.ExternalReferences.TitleLength.Minimum | integer | Minimum allowed external reference title length. | 5 |
| ModelPolicies.Book.ExternalReferences.TitleLength.Maximum | integer | Maximum allowed external reference title length. | 60 |
| ModelPolicies.Book.ExternalReferences.ParutionDateLength.Minimum | integer | Minimum allowed publication date length. | 2 |
| ModelPolicies.Book.ExternalReferences.ParutionDateLength.Maximum | integer | Maximum allowed publication date length. | 15 |
| ModelPolicies.Book.ExternalReferences.AuthorLength.Minimum | integer | Minimum allowed author name length. | 2 |
| ModelPolicies.Book.ExternalReferences.AuthorLength.Maximum | integer | Maximum allowed author name length. | 25 |
| ModelPolicies.Book.ExternalReferences.AuthorCount.Minimum | integer | Minimum number of authors allowed. | 0 |
| ModelPolicies.Book.ExternalReferences.AuthorCount.Maximum | integer | Maximum number of authors allowed. | 4 |
| ModelPolicies.Book.ExternalReferences.PublisherLength.Minimum | integer | Minimum allowed publisher name length. | 3 |
| ModelPolicies.Book.ExternalReferences.PublisherLength.Maximum | integer | Maximum allowed publisher name length. | 30 |
"ExternalReferences": {
"TitleLength": {
"Minimum": 5,
"Maximum": 120
},
"ParutionDateLength": {
"Minimum": 2,
"Maximum": 15
},
"AuthorLength": {
"Minimum": 2,
"Maximum": 25
},
"AuthorCount": {
"Minimum": 0,
"Maximum": 4
},
"PublisherLength": {
"Minimum": 3,
"Maximum": 50
}
}Please refer to the data-integrity documentation for details on the settings.
Please refer to the Common Security Configuration documentation for details about the available settings. Implement only the settings section according to the following requirements. Additional common security settings will be ignored.
"Security": {
"ApiRateLimit": { },
"ImageDownloader": { }
}

https://orakllearn.com · Author: Jimmy Bourque · https://jbti-evolution.com
- Main page
- Overview
- Foundation
- Integration
- Flow
- Using OraklLearn
- Configuration
- Monitoring