request.authenticationΒΆ
Initialization for the authentication step of the request pipeline.
SubmodulesΒΆ
ClassesΒΆ
Abstract base class for authentication components. |
|
Handles authentication via client certificates. |
|
Composite authenticator for grouping and executing multiple authentication methods. |
|
Handles authentication via IDevID certificates. |
|
Composite authenticator specifically for CMP requests, combining various authentication methods. |
|
Composite authenticator specifically for EST requests, combining various authentication methods. |
Package ContentsΒΆ
- class request.authentication.AuthenticationComponent[source]ΒΆ
Bases:
abc.ABCAbstract base class for authentication components.
- abstractmethod authenticate(context)[source]ΒΆ
Authenticate a request using specific logic.
- Parameters:
- Return type:
devices.models.DeviceModel | None
- class request.authentication.ClientCertificateAuthentication[source]ΒΆ
Bases:
AuthenticationComponent,trustpoint.logger.LoggerMixinHandles authentication via client certificates.
- class request.authentication.CompositeAuthentication[source]ΒΆ
Bases:
AuthenticationComponent,trustpoint.logger.LoggerMixinComposite authenticator for grouping and executing multiple authentication methods.
- components: list[AuthenticationComponent] = []ΒΆ
- add(component)[source]ΒΆ
Add an authentication component to the composite.
- Parameters:
component (AuthenticationComponent)
- Return type:
None
- remove(component)[source]ΒΆ
Remove an authentication component from the composite.
- Parameters:
component (AuthenticationComponent)
- Return type:
None
- class request.authentication.IDevIDAuthentication[source]ΒΆ
Bases:
AuthenticationComponent,trustpoint.logger.LoggerMixinHandles authentication via IDevID certificates.
- class request.authentication.CmpAuthentication[source]ΒΆ
Bases:
request.authentication.base.CompositeAuthenticationComposite authenticator specifically for CMP requests, combining various authentication methods.
- class request.authentication.EstAuthentication[source]ΒΆ
Bases:
request.authentication.base.CompositeAuthenticationComposite authenticator specifically for EST requests, combining various authentication methods.