PANTHEON™ Help

 Sadržaj
 Glavna strana- Dobrodošli u PANTHEON uputstva
[Collapse]PANTHEON
 [Collapse]PANTHEON priručnici
  [Expand]Priručnik za PANTHEON
  [Expand]Vodič po DataLab PANTHEON™ Farming
  [Expand]Vodič za mobilni POS
  [Expand]Vodič za PANTHEON Vet
 [Collapse]PANTHEON korisnički priručnici
  [Expand]Korisnički priručnik za PANTHEON
  [Expand]Operativni priručnik za datalab PANTHEON Farming
  [Expand]Korisnički vodič za mobilni POS
  [Expand]Korisnički priručnik za PANTHEON VET
  [Expand]Korisnički priručnik za PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Priručnici za PANTHEON Web
  [Expand]Vodič po PANTHEON Web Light-u
  [Expand]Vodič po PANTHEON Web Terminal-u
  [Expand]Vodič za PANTHEON Web Legal
  [Expand]Arhiva starih proizvoda
 [Collapse]Korisnički priručnici za PANTHEON Web
  [Expand]Kako početi? PANTHEON Web
  [Expand]Korisnički priručnik za PANTHEON Web Light
  [Expand]Korisnički priručnik za PANTHEON Web Terminal
  [Expand]Arhiva starih proizvoda
  [Expand]Korisnički priručnik za PANTHEON Web Legal
[Collapse]PANTHEON Granule
 [Collapse]Priručnik za PANTHEON Granule
  [Expand]Granula Kadrovi
  [Expand]Granula Putni nalozi
  [Expand]Granula Dokumenti i zadaci
  [Expand]Granula Kontrolna tabla
  [Expand]Granula Servis na terenu
  [Expand]Granula B2B naručivanje
  [Expand]Inventar Fiksne Imovine
  [Expand]Granula Inventar skladišta
 [Collapse]Korisnički priručnik za PANTHEON Granule
  [Expand]Kako početi?
  [Expand]PANTHEON Granule i aktivacija
  [Expand]Granula Kadrovi
  [Expand]Granula Putni nalozi
  [Expand]Granula B2B Naručivanje
  [Expand]Granula Kontrolna tabla
  [Expand]Granula Dokumenti i Zadaci
  [Expand]Granula Servis na terenu
   PANTHEON Granule - česta pitanja i odgovori
  [Expand]Inventar Fiksne Imovine
  [Expand]Arhiva
  [Expand]Granula Inventar skladišta
   Arhiva

Load Time: 390.6109 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/).

 

 

  

     


Oceni ovu temu
Da li je ova tema korisna?
Komentari
Komentari će biti vidljivi i na forumu!