Logo
Explore Help
Register Sign In
starred/BookStack
1
0
Fork 0
You've already forked BookStack
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-02-24 19:07:20 +03:00
Code Issues 784 Packages Projects Releases 14 Wiki Activity
Files
ed563fef2872134a09d1063f71a7bade3f5e6776
BookStack/app/Exceptions/ApiAuthException.php

7 lines
97 B
PHP
Raw Normal View History

Extracted API auth into guard Also implemented more elegant solution to allowing session auth for API routes; A new 'StartSessionIfCookieExists' middleware, which wraps the default 'StartSession' middleware will run for API routes which only sets up the session if a session cookie is found on the request. Also decrypts only the session cookie. Also cleaned some TokenController codeclimate warnings.
2019-12-30 14:51:28 +00:00
<?php
namespace BookStack\Exceptions;
Added API listing filtering & cleaned ApiAuthenticate returns API listing endpoint filter can be found via &filter[name]=my+book query parameters. There are a range of operators that can be used such as &filter[id:gte]=4
2020-01-01 16:33:47 +00:00
class ApiAuthException extends UnauthorizedException {
Extracted API auth into guard Also implemented more elegant solution to allowing session auth for API routes; A new 'StartSessionIfCookieExists' middleware, which wraps the default 'StartSession' middleware will run for API routes which only sets up the session if a session cookie is found on the request. Also decrypts only the session cookie. Also cleaned some TokenController codeclimate warnings.
2019-12-30 14:51:28 +00:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 78ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API