Authentication¶
Username/password¶
Argus supports API login with username and password, see Auth endpoints. This will yield a bearer token.
Also supported is logging in via browser to the admin, at /admin/. This
will set a session cookie.
OAuth2¶
For support of OAuth2/OIDC-logins, the library python-social-auth (PSA) is
used. By adding a new backend to the setting AUTHENTICATION_BACKENDS it is
possible to support all that PSA supports, and it is also not too hard to write
your own.
Each backend will need a client key and secret, see the documentation for each backend.
Which backends are configured will be available on the JSON endpoint
/login-methods/.