PANTHEON™ Help

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]PANTHEON упатства
  [Collapse]Guide for PANTHEON
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Помощ
   [Expand]Messages and Warnings
   [Expand]Старите продукти
   [Collapse]Additional programs
     Добавяне на потребители - Добавяне на потребители в базата данни
    [Collapse]PANTHEON Web Services (PAWS)
      Exchange Data Sets Scheme
      Installation of Web services Framework
     [Collapse]Catalog of Web Services
      [Collapse]Catalog of APIs
        DBObjects
        Ident
        Subject
        Users
        Schemas
        Параметри на базата данни
    [Expand]Datalab CHRONOS
    [Expand]Datalab OTOS
    [Expand]Datalab ATENA
    [Expand]Datalab Migrator
     Post-Migration Wizard
    [Expand]mobilni Potni Nalogi
    [Expand]Pantheon LX/LT
     Pantheon SHAKE
    [Expand]PANTHEON Automation Server (PAAS)
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Collapse]PANTHEON потребителски ръководства
  [Expand]Ръководство за потребителя за PANTHEON
  [Expand]Ръководство за потребителя за PANTHEON Retail
  [Expand]Ръководство за потребителя за PANTHEON Vet
  [Expand]Ръководство за потребителя за PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]PANTHEON Web Guides
  [Expand]Ръководство за PANTHEON Web Light
  [Expand]Ръководство за PANTHEON Уеб Терминал
  [Expand]Ръководство за PANTHEON Web Legal
  [Expand]Архив на стари продукти
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
   Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
  [Expand]Архив на стари продукти
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътни заповеди Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиент
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
   Започване
   Using PANTHEON Granules at Tecta, a fictional company
  [Expand]PANTHEON Granules and activation
  [Expand]PANTHEON Granule Work records
  [Expand]PANTHEON Granule Travel orders
  [Expand]PANTHEON Granule Documents and Tasks
  [Expand]PANTHEON Granule B2B orders
  [Expand]PANTHEON Granule Dashboard
  [Expand]Полеви сервизен гранул
   PANTHEON Granules - FAQ
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
   Архив
[Expand]Потребителски сайт

Load Time: 453,1183 ms
"
  1000002244 | 221867 | 407845 | Localized
Label

Users

               

There are four ways to authenticate a user:

  1. atNone ("AuthType": "atNone") 
  2. atUser ("AuthType": "atUser")
  3. POST/API/Users/Authwithcookie
  4. POST/API/Users/Authwithtoken

1. atNone ("AuthType": "atNone") 

If the parameter AuthType is set to atNone, there is no authentication and the user is taken from the connection string in appsettings.json file.

 

2. atUser ("AuthType": "atUser")

If the parameter AuthType is set to atUser, the user and password are send at each connection to create the connection string.


2.1 Example for Advanced REST client:



Selected Basic authorisation allows you to send username and password in a request header.

You can also enter in the service HEADER:

authorization: Basic XXXXXXXXXXXX
where  XXXXXXXXXXXX is base64-encrypted username: password

You can also use other authentication method that is allowed by the client aplication.

 

3. POST/API/Users/Authwithcookie

This API generates a cookie atCookie ("AuthType": "atCookie") for autorisation in the .json format.

User and password will be sent in the .json format.


{

"username": "string",

  "password": "string"

}

 

Expiration in minutes is specified in the parameter  "CookieExpiresMinutes": 2,


 

4. POST/API/Users/Authwithtoken

This API gnerates a token atToken ("AuthType": "atToken",) in the .json format needed for the autorisation in each API service call.

{

"username": "string",

  "password": "string"

}

 

User and password will be sent in the .json format.

Selected Bearer authorization allows you to send an authentication token in the authorization header using the 'bearer' method.

You can also add the token in the service HEADER.

authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Token expiration in days: "TokenExpiresDays": 1,

Tokens can be structured as JWT or JSON Web Tokens (https://jwt.io/).

 

 


 

Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!