Szablony autoryzacji umożliwiają zdefiniowanie wspólnej metody autoryzacji dla wielu źródeł danych typu RESTful API. Zapisany szablon można wykorzystywać wielokrotnie przy konfiguracji kolejnych źródeł danych komunikujących się z tym samym systemem API. Tworzenie szablonu autoryzacji:Aby utworzyć autoryzację należy wybrać na formularzu źródła danych przycisk "Utwórz szablon autoryzacji": Następnie pojawi się okienko z konfiguracją szablonu autoryzacji: Opis konfiguracji szablonu autoryzacji:
Dostępne rodzaje autoryzacji:
API KeySzablon autoryzacji API Key umożliwia dodanie do każdego żądania stałego klucza API. Klucz może zostać dodany do adresu URL w formacie ?klucz=wartość lub do nagłówka w formacie { headers: { klucz: wartość } } Opis konfiguracji:
Przykłady konfiguracji:
Basic AuthSzablon autoryzacji Basic Auth umożliwia dodanie do każdego żądania nagłówka Basic Auth w postaci: Authorization: Basic {credentials}, gdzie {credentials} to wartość Base64 obliczana z ciągu: {Użytkownik}:{Hasło}. Opis konfiguracji:
Bearer TokenSzablon autoryzacji Bearer Token umożliwia dodanie do każdego żądania nagłówka Basic Auth w postaci: Authorization: Bearer {token} Opis konfiguracji:
CookieSzablon autoryzacji Cookie umożliwia dodanie do każdego żądania ciasteczka wymaganego do autoryzacji żądania. Opis konfiguracji:
Przykłady konfiguracji:
OAuth2Szablon autoryzacji OAuth2 umożliwia dodanie do każdego żądania tokena OAuth w postaci odpowiedniego nagłówka lub parametru adresu URL. Opis konfiguracji:
Przykład konfiguracji:NTLMSzablon autoryzacji umożliwia dodanie do nagłówka żądania autoryzacji w standardzie NTLM (https://en.wikipedia.org/wiki/NTLM). Opis konfiguracji
Modyfikacja szablonów autoryzacjiSzablony autoryzacji umożliwiają modyfikację wcześniej zapisanych szablonów. Aby tego dokonać należy na formularzy wybrać przycisk "Modyfikuj szablony autoryzacji". Po kliknięciu ukaże się okno modyfikacji szablonu autoryzacji. W otwartym oknie należy wybrać z listy rozwijanej zapisany szablon autoryzacji. Po wybraniu szablonu formularz zostanie uzupełniony o dane w nim zapisane. Po zakończeniu edycji danych należy wybrać przycisk "Modyfikuj szablon autoryzacji" w celu zapisania szablonu ze zmianami. Nieużywany szablon można również usunąć z bazy za pomocą przycisku "Usuń". |
Authorization templates allow you to define a common authorization method for many RESTful API datasources. The saved template can be used many times to configure subsequent datasources that communicate with the same API system. Creating an authorization template:To create an authorization template, select the "Create authorization template" button on the datasource form: Then a window will appear with the configuration of the authorization template: Description of the authorization template configuration:
Available authorization types:
API KeyThe API Key authorization template allows you to add a permanent API key to each request. The key can be added to the URL in the format - ?key=value - or to the header in the format { headers: { key: value } } Configuration description:
Configuration examples:
Basic AuthThe Basic Auth authorization template allows you to add a Basic Auth header to each request in the form: Authorization: Basic {credentials}, where {credentials} is the Base64 value calculated from: {Użytkownik}:{Hasło}. Configuration description:
Bearer TokenThe Bearer Token authorization template allows you to add a Basic Auth header to each request in the form: Authorization: Bearer {token} Configuration description:
CookieThe Cookie authorization template allows you to add to each request the cookie required to authorize the request. Configuration description:
Configuration examples:
OAuth2The OAuth2 authorization template allows you to add an OAuth token to each request as the appropriate header or URL parameter. Configuration description:
Configuration example:NTLMThe NTLM (https://en.wikipedia.org/wiki/NTLM) authorization template. Configuration
Modification of authorization templatesAuthorization templates allow you to modify previously saved templates. To do this, select the "Modify authorization" button on the form. After clicking, the authorization template modification window will appear. In the opened window, select the saved authorization template from the drop-down list. After selecting the template, the form will be filled with the data saved in it. After editing the data, select the "Modify authorization" button to save the template with changes. The unused template can also be removed from the database using the "Delete" button. |