viam.proto.rpc.auth
@generated by Viam. Do not edit manually!
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
An AuthenticateRequest contains the credentials used to authenticate. |
|
An AuthenticateResponse is returned after successful authentication. |
|
An AuthenticateToRequest contains the entity to authenticate to. |
|
An AuthenticateResponse is returned after successful authentication. |
|
Abstract base class for protocol messages. |
Module Contents
- class viam.proto.rpc.auth.AuthServiceBase[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class viam.proto.rpc.auth.ExternalAuthServiceBase[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class viam.proto.rpc.auth.ExternalAuthServiceStub(channel: grpclib.client.Channel)[source]
- AuthenticateTo
- class viam.proto.rpc.auth.UnimplementedAuthServiceBase[source]
Bases:
AuthServiceBase
Helper class that provides a standard way to create an ABC using inheritance.
- class viam.proto.rpc.auth.UnimplementedExternalAuthServiceBase[source]
Bases:
ExternalAuthServiceBase
Helper class that provides a standard way to create an ABC using inheritance.
- class viam.proto.rpc.auth.AuthenticateRequest(*, entity: str = ..., credentials: global___Credentials | None = ...)
Bases:
google.protobuf.message.Message
An AuthenticateRequest contains the credentials used to authenticate.
- entity: str
- property credentials: global___Credentials
- HasField(field_name: Literal['credentials', b'credentials']) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueError
will be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- class viam.proto.rpc.auth.AuthenticateResponse(*, access_token: str = ...)
Bases:
google.protobuf.message.Message
An AuthenticateResponse is returned after successful authentication.
- access_token: str
access_token is a JWT where only the expiration should be deemed important. Future(erd): maybe a refresh_token
- class viam.proto.rpc.auth.AuthenticateToRequest(*, entity: str = ...)
Bases:
google.protobuf.message.Message
An AuthenticateToRequest contains the entity to authenticate to.
- entity: str
- class viam.proto.rpc.auth.AuthenticateToResponse(*, access_token: str = ...)
Bases:
google.protobuf.message.Message
An AuthenticateResponse is returned after successful authentication.
- access_token: str
access_token is a JWT where only the expiration should be deemed important. Future(erd): maybe a refresh_token
- class viam.proto.rpc.auth.Credentials(*, type: str = ..., payload: str = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- type: str
type is the type of credentials being used.
- payload: str
payload is an opaque string used that are of the given type above.