Skip to content

Commit

Permalink
docs: app_api session keys (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 authored Dec 27, 2023
1 parent b2be001 commit c60aaff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/tech_details/Authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,14 @@ AppAPIAuth

AppAPI provides ``AppAPIAuth`` attribute with middleware to validate requests from ExApps.
In your API controllers you can use it as an PHP attribute.

AppAPI session keys
^^^^^^^^^^^^^^^^^^^

After successful authentication AppAPI sets `app_api` session key to ``true``.

.. code-block:: php
$this->session->set('app_api', true);
.. note:: The Nextcloud server verifies this session key and allows **CORS protection** and **Two-Factor authentication** to be bypassed for requests coming from ExApps.

0 comments on commit c60aaff

Please sign in to comment.