Files @ e04106e46d6f
Branch filter:

Location: kallithea/docs/changelog.rst - annotation

e04106e46d6f 200 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Thomas De Schampheleire
auth: return early in LoginRequired on API key validation

Simplify the logic in the LoginRequired decorator when Kallithea is accessed
using an API key. Either:
- the key is valid and API access is allowed for the accessed method
(continue), or
- the key is invalid (redirect to login page), or
- the accessed method does not allow API access (403 Forbidden)

In none of these cases does it make sense to continue checking for user
authentication, so return early.
1
2
3
4
5
6
7
8
9
.. _changelog:

=========
Changelog
=========

Kallithea project doesn't keep its changelog here.  We refer you to our Mercurial logs_ .

.. _logs: https://kallithea-scm.org/repos/kallithea/changelog