You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tech_details/Authentication.rst
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,3 +78,14 @@ AppAPIAuth
78
78
79
79
AppAPI provides ``AppAPIAuth`` attribute with middleware to validate requests from ExApps.
80
80
In your API controllers you can use it as an PHP attribute.
81
+
82
+
AppAPI session keys
83
+
^^^^^^^^^^^^^^^^^^^
84
+
85
+
After successful authentication AppAPI sets `app_api` session key to ``true``.
86
+
87
+
.. code-block:: php
88
+
89
+
$this->session->set('app_api', true);
90
+
91
+
.. 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 commit comments