aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth/authorize.py (follow)
Commit message (Collapse)AuthorAgeLines
* Run ruff on codeHEADmainGravatar Joe Banks2025-08-08-1/+1
|
* Use exp key for JWT as well as expiry keyGravatar Joe Banks2025-08-08-0/+3
|
* Use redis for the discord member cache over mongoGravatar Chris Lovering2024-07-16-1/+1
|
* Apply fixable lint settings with RuffGravatar Joe Banks2024-07-08-24/+18
|
* Overhaul Scope SystemGravatar Hassan Abouelela2022-02-05-4/+8
| | | | | | | Adds discord role support to the pre-existing scopes system to power more complex access permissions. Signed-off-by: Hassan Abouelela <[email protected]>
* Corrects Token Cookie DomainGravatar Hassan Abouelela2021-03-07-4/+2
| | | | | | Removes schema from the token cookie's domain field. Signed-off-by: Hassan Abouelela <[email protected]>
* Switches Forwarded Protocol HeaderGravatar Hassan Abouelela2021-03-07-8/+8
| | | | | | | | Traefik forwards https traffic to http, which causes issues with the protocol in a request's URL. This switch uses the protocol header to correctly set the protocol. Signed-off-by: Hassan Abouelela <[email protected]>
* Corrects Domain On Token CookieGravatar Hassan Abouelela2021-03-07-1/+2
| | | | | | Correctly formats the domain set on the cookie used for tokens. Signed-off-by: Hassan Abouelela <[email protected]>
* Corrects Domain On Token CookieGravatar Hassan Abouelela2021-03-07-2/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fixes Domain URL On Token CookieGravatar Hassan Abouelela2021-03-07-10/+15
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Makes Helper To Handle Token SameSite LogicGravatar Hassan Abouelela2021-03-07-12/+37
| | | | | | Adds a helper method to allow tokens to work on deploy previews. Signed-off-by: Hassan Abouelela <[email protected]>
* Revert "Sets Token Cookie To Same Site To Lax"Gravatar Hassan Abouelela2021-03-06-1/+1
| | | | | | This reverts commit 013ea900 Signed-off-by: Hassan Abouelela <[email protected]>
* Sets Token Cookie To Same Site To LaxGravatar Hassan Abouelela2021-03-06-1/+1
| | | | | | | Sets the authorization token cookie's security policy to lax, to allow it to work on the site. Signed-off-by: Hassan Abouelela <[email protected]>
* Formats Authorize FileGravatar Hassan Abouelela2021-03-06-3/+2
| | | | | | | | Cleans up the authorize file, and the __init__ to maintain the project's code style. Co-authored-by: Joe Banks <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
* Renames Token To `token` Gravatar Hassan Abouelela2021-03-06-2/+2
| | | | | Changes the name for the token used to authorize with the backend. Co-authored-by: Joe Banks <[email protected]>
* Dynamically Selects OAuth Redirect URIGravatar Hassan Abouelela2021-02-21-2/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Expiry To Authorization RoutesGravatar Hassan Abouelela2021-02-20-1/+6
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Token Refresh RouteGravatar Hassan Abouelela2021-02-19-13/+68
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* `jwt.encode` returns a string, not a bytestring.Gravatar kosayoda2020-12-31-3/+1
| | | | | | | As of pyjwt 2.0.0, `jwt.encode` does not return a bytestring, so decoding is unnecessary. ref: https://github.com/jpadilla/pyjwt/blob/c96131b970fd341106ce33d0a85b50e3bdbb67ec/CHANGELOG.md#jwtencode-return-type
* Document auth routeGravatar Joe Banks2020-12-16-2/+26
|
* Move from PyMongo to Motor driver for asynchronous supportGravatar ks1292020-12-02-1/+1
|
* Fix linting issues to make flake8 job passingGravatar ks1292020-11-23-1/+2
|
* Check if a user is an admin in the token payloadGravatar Joe Banks2020-11-14-0/+4
|
* Add some basic routesGravatar Joe Banks2020-10-25-0/+31