PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for 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]Help
   [Expand]Messages and Warnings
   [Collapse]Additional programs
     AddUsers - Adding Database Users
    [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
        Database parametars
    [Expand]Datalab OTOS
    [Expand]Datalab CHRONOS
    [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]Old products
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Expand]User Manual for PANTHEON
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 437.5229 ms
"
  1000002244 | 221867 | 373934 | Published
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/).

 

 


 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!