|
|
Some statistics and endpoints in the REST API are not public. In order to access them, a user must log in and, in addition, be authorized for the particular resource. Authentication and authorization (AA) functions are available from the pull-down menu connected to the user button (top right).
|
|
|
|
|
|
# User Menu
|
|
|
* User Menu
|
|
|
|
|
|
Selecting the *Log in* menu item opens the following authetication form:
|
|
|
|
... | ... | @@ -15,9 +15,4 @@ After a successful login, the user menu displays additional options: |
|
|
|
|
|
[[figures/user-menu.png]]
|
|
|
|
|
|
# API Tokens
|
|
|
|
|
|
#+begin_src sh :results output
|
|
|
curl -s -H 'Authorization: Bearer e405fa87-e346-4b30-a986-aa7b04a4cc77' \
|
|
|
'https://stats.adam.nic.cz/cz_dns_server_locations'
|
|
|
#+end_src |
|
|
Selecting *Change password* opens a form that allows for changing the user's password, and *Log out* just does what it says. Finally, the menu item *Manage tokens* is discussed in [[API-Tokens]]. |