-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
archivebox.api.auth
Nick Sweeting edited this page Nov 13, 2024
·
2 revisions
:allowtitles:
:class: autosummary longtable
:align: left
* - {py:obj}`APITokenAuthCheck <archivebox.api.auth.APITokenAuthCheck>`
- ```{autodoc2-docstring} archivebox.api.auth.APITokenAuthCheck
:summary:
```
* - {py:obj}`UserPassAuthCheck <archivebox.api.auth.UserPassAuthCheck>`
- ```{autodoc2-docstring} archivebox.api.auth.UserPassAuthCheck
:summary:
```
* - {py:obj}`HeaderTokenAuth <archivebox.api.auth.HeaderTokenAuth>`
- ```{autodoc2-docstring} archivebox.api.auth.HeaderTokenAuth
:summary:
```
* - {py:obj}`BearerTokenAuth <archivebox.api.auth.BearerTokenAuth>`
- ```{autodoc2-docstring} archivebox.api.auth.BearerTokenAuth
:summary:
```
* - {py:obj}`QueryParamTokenAuth <archivebox.api.auth.QueryParamTokenAuth>`
- ```{autodoc2-docstring} archivebox.api.auth.QueryParamTokenAuth
:summary:
```
* - {py:obj}`UsernameAndPasswordAuth <archivebox.api.auth.UsernameAndPasswordAuth>`
- ```{autodoc2-docstring} archivebox.api.auth.UsernameAndPasswordAuth
:summary:
```
:class: autosummary longtable
:align: left
* - {py:obj}`get_or_create_api_token <archivebox.api.auth.get_or_create_api_token>`
- ```{autodoc2-docstring} archivebox.api.auth.get_or_create_api_token
:summary:
```
* - {py:obj}`auth_using_token <archivebox.api.auth.auth_using_token>`
- ```{autodoc2-docstring} archivebox.api.auth.auth_using_token
:summary:
```
* - {py:obj}`auth_using_password <archivebox.api.auth.auth_using_password>`
- ```{autodoc2-docstring} archivebox.api.auth.auth_using_password
:summary:
```
:class: autosummary longtable
:align: left
* - {py:obj}`API_AUTH_METHODS <archivebox.api.auth.API_AUTH_METHODS>`
- ```{autodoc2-docstring} archivebox.api.auth.API_AUTH_METHODS
:summary:
```
:canonical: archivebox.api.auth.get_or_create_api_token
```{autodoc2-docstring} archivebox.api.auth.get_or_create_api_token
```
:canonical: archivebox.api.auth.auth_using_token
```{autodoc2-docstring} archivebox.api.auth.auth_using_token
```
:canonical: archivebox.api.auth.auth_using_password
```{autodoc2-docstring} archivebox.api.auth.auth_using_password
```
:canonical: archivebox.api.auth.APITokenAuthCheck
```{autodoc2-docstring} archivebox.api.auth.APITokenAuthCheck
```
````{py:method} authenticate(request: django.http.HttpRequest, key: typing.Optional[str] = None) -> typing.Optional[django.contrib.auth.models.AbstractBaseUser]
:canonical: archivebox.api.auth.APITokenAuthCheck.authenticate
```{autodoc2-docstring} archivebox.api.auth.APITokenAuthCheck.authenticate
```
````
:canonical: archivebox.api.auth.UserPassAuthCheck
```{autodoc2-docstring} archivebox.api.auth.UserPassAuthCheck
```
````{py:method} authenticate(request: django.http.HttpRequest, username: typing.Optional[str] = None, password: typing.Optional[str] = None) -> typing.Optional[django.contrib.auth.models.AbstractBaseUser]
:canonical: archivebox.api.auth.UserPassAuthCheck.authenticate
```{autodoc2-docstring} archivebox.api.auth.UserPassAuthCheck.authenticate
```
````
:canonical: archivebox.api.auth.HeaderTokenAuth
Bases: {py:obj}`archivebox.api.auth.APITokenAuthCheck`, {py:obj}`ninja.security.APIKeyHeader`
```{autodoc2-docstring} archivebox.api.auth.HeaderTokenAuth
```
```{rubric} Initialization
```
```{autodoc2-docstring} archivebox.api.auth.HeaderTokenAuth.__init__
```
````{py:attribute} param_name
:canonical: archivebox.api.auth.HeaderTokenAuth.param_name
:value: >
'X-ArchiveBox-API-Key'
```{autodoc2-docstring} archivebox.api.auth.HeaderTokenAuth.param_name
```
````
:canonical: archivebox.api.auth.BearerTokenAuth
Bases: {py:obj}`archivebox.api.auth.APITokenAuthCheck`, {py:obj}`ninja.security.HttpBearer`
```{autodoc2-docstring} archivebox.api.auth.BearerTokenAuth
```
```{rubric} Initialization
```
```{autodoc2-docstring} archivebox.api.auth.BearerTokenAuth.__init__
```
:canonical: archivebox.api.auth.QueryParamTokenAuth
Bases: {py:obj}`archivebox.api.auth.APITokenAuthCheck`, {py:obj}`ninja.security.APIKeyQuery`
```{autodoc2-docstring} archivebox.api.auth.QueryParamTokenAuth
```
```{rubric} Initialization
```
```{autodoc2-docstring} archivebox.api.auth.QueryParamTokenAuth.__init__
```
````{py:attribute} param_name
:canonical: archivebox.api.auth.QueryParamTokenAuth.param_name
:value: >
'api_key'
```{autodoc2-docstring} archivebox.api.auth.QueryParamTokenAuth.param_name
```
````
:canonical: archivebox.api.auth.UsernameAndPasswordAuth
Bases: {py:obj}`archivebox.api.auth.UserPassAuthCheck`, {py:obj}`ninja.security.HttpBasicAuth`
```{autodoc2-docstring} archivebox.api.auth.UsernameAndPasswordAuth
```
```{rubric} Initialization
```
```{autodoc2-docstring} archivebox.api.auth.UsernameAndPasswordAuth.__init__
```
:canonical: archivebox.api.auth.API_AUTH_METHODS
:value: >
None
```{autodoc2-docstring} archivebox.api.auth.API_AUTH_METHODS
```
- π’ Quickstart
- π₯οΈ Install
- π³ Docker
- β‘οΈ Supported Sources
- β¬ οΈ Supported Outputs
- οΉ©Command Line
- π Web UI
- 𧩠Browser Extension
- πΎ REST API / Webhooks
- π Python API / REPL / SQL API
- βοΈ Configuration
- π¦ Dependencies
- πΏ Disk Layout
- π Security Overview
- π Developer Documentation
- Upgrading
- Setting up Storage (NFS/SMB/S3/etc)
- Setting up Authentication (SSO/LDAP/etc)
- Setting up Search (rg/sonic/etc)
- Scheduled Archiving
- Publishing Your Archive
- Chromium Install
- Cookies & Sessions Setup
- Merging Collections
- Troubleshooting
- βοΈ Web Archiving Community
- Background & Motivation
- Comparison to Other Tools
- Architecture Diagram
- Changelog & Roadmap