Bearer Authentication Configuration.
More...
|
| None | set_token (self, str token) |
| | Set the bearer token for the authentication.
|
| |
| str | get_token (self) |
| | Get the bearer token for the authentication.
|
| |
| bool | is_active (self) |
| | Check if the bearer authentication is active.
|
| |
|
| str | _token = PrivateAttr(default="") |
| |
Bearer Authentication Configuration.
- Parameters
-
| BaseModel | Pydantic BaseModel for data validation. |
Definition at line 10 of file config_classes.py.
◆ get_token()
| str config_classes.BearerAuth.get_token |
( |
|
self | ) |
|
Get the bearer token for the authentication.
- Returns
- The bearer token.
Definition at line 25 of file config_classes.py.
◆ is_active()
| bool config_classes.BearerAuth.is_active |
( |
|
self | ) |
|
Check if the bearer authentication is active.
- Returns
- True if the token is not empty, False otherwise.
Definition at line 32 of file config_classes.py.
◆ set_token()
| None config_classes.BearerAuth.set_token |
( |
|
self, |
|
|
str |
token |
|
) |
| |
Set the bearer token for the authentication.
- Parameters
-
| token | Bearer token for the authentication. |
Definition at line 18 of file config_classes.py.
◆ _token [1/2]
| str config_classes.BearerAuth._token = PrivateAttr(default="") |
|
staticprotected |
◆ _token [2/2]
| config_classes.BearerAuth._token |
|
protected |
The documentation for this class was generated from the following file: