Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-20 | auth: Setup the user correctly | Frederick Muriuki Muriithi | |
* gn3/auth/authentication/oauth2/grants/password_grant.py: Return user rather than boolean * gn3/auth/authentication/oauth2/models/oauth2client.py: provide optional `user` argument to allow flexibility in setting up the client's user * gn3/auth/authentication/oauth2/models/oauth2token.py: Set token and client user correctly * gn3/auth/authentication/oauth2/server.py: Set token user from the request | |||
2022-12-22 | auth: implement OAuth2 flow.oauth2_auth_flow | Frederick Muriuki Muriithi | |
Add code to implement the OAuth2 flow. * Add test fixtures for setting up users and OAuth2 clients * Add tests for token generation with the "Password Grant" flow * Fix some issues with test due to changes in the database connection's row_factory |