PANTHEON™ Help

 Kategori
 PANTHEON Ndihmë - Mirësevini
[Collapse]PANTHEON
 [Collapse]Udhëzues për PANTHEON
  [Expand]Udhëzues për PANTHEON
  [Expand]Udhëzues për PANTHEON Retail
  [Expand]Udhëzues për PANTHEON Vet
  [Expand]Udhëzues për PANTHEON Bujqësi
 [Collapse]Manualet e Përdoruesve për PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON Retail
  [Expand]Manuali i përdoruesit për PANTHEON Vet
  [Expand]Manuali i Përdoruesit për PANTHEON Bujqësi
[Collapse]PANTHEON Web
 [Collapse]Udhëzues për PANTHEON Web
  [Expand]Udhëzues për PANTHEON Web Light
  [Expand]Udhëzues për Terminalin Web PANTHEON
  [Expand]Udhëzues për PANTHEON Web Legal
  [Expand]Arkiva e produkteve të vjetra
 [Collapse]Manualet e Përdoruesit për PANTHEON Web
  [Expand]Fillimi PANTHEON Web
  [Expand]Manuali i Përdoruesit për PANTHEON Web Light
  [Expand]Manuali i Përdoruesit për Terminalin Web PANTHEON
  [Expand]Manuali i Përdoruesit për PANTHEON Web Legal
  [Expand]Arkiva e produkteve të vjetra
[Collapse]PANTHEON Granulat
 [Collapse]Udhëzues për Granulat PANTHEON
  [Expand]Granul Personeli
  [Expand]Urdhërat e Udhëtimit Granule
  [Expand]Dokumentet dhe Granula e Detyrave
  [Expand]Dashboard Granule
  [Expand]Porositë B2B Granule
  [Expand]Shërbimi në Terren Granul
  [Expand]Inventari i Aseteve të Paluajtshme
  [Expand]Inventari i Magazinës Granule
 [Collapse]Manualet e Përdoruesit për Granulat PANTHEON
  [Expand]Fillimi
  [Expand]Granula e Personelit
  [Expand]Urdhërat e Udhëtimit Granule
  [Expand]Dokumentet dhe Detyrat Granule
  [Expand]Porositë B2B Granule
  [Expand]Dashboard Granule
  [Expand]Shërbimi në Terren Granul
  [Expand]Inventari i Aseteve të Paluajtshme
  [Expand]Inventari i Magazinës Granule
  [Expand]Arkiv
[Expand]Faqja e Përdoruesit

Load Time: 328,1268 ms
"
  6613 | 1 | |
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!