This website requires JavaScript.
Explore
Help
Sign in
luisgulo
/
BookStack
Watch
1
Star
0
Fork
You've already forked BookStack
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
8016f1121e
BookStack
/
app
/
Exceptions
/
ApiAuthException.php
7 lines
97 B
PHP
Raw
Normal View
History
Unescape
Escape
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 15:51:28 +01: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 17:33:47 +01: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 15:51:28 +01:00
}
Reference in a new issue
Copy permalink