[% USE raw %] [% USE Koha %] [% USE Asset %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% t("API Keys") | html %] › [% t("Patrons") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'patron-search-header.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Patrons [% END %] [% WRAPPER breadcrumb_item %] [% INCLUDE 'patron-title.inc' %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] API keys [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% INCLUDE 'members-toolbar.inc' %]

API keys for [% INCLUDE 'patron-title.inc' %]

[% IF fresh_api_key %] [%# A fresh api key was generated, display the secret, only once %]
Make sure to copy your API secret now. You won’t be able to see it again!
  1. Description: [% fresh_api_key.description | html %]
  2. Client ID: [% fresh_api_key.client_id | html %]
  3. Secret: [% fresh_api_key.plain_text_secret | html %]
[% END %] [% IF api_keys.count %]

[% FOREACH key IN api_keys %] [% END %]
Description Client ID Active Actions
[% key.description | html %] [% key.client_id | html %] [% IF key.active %]Yes[% ELSE %]No[% END %]
[% IF key.active %] [% ELSE %] [% END %]
[% ELSE %]

No keys defined for the current patron.

Generate a new client id/secret pair

[% END # /IF api_keys.count %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]