Package org.signal.chat.credentials
Message
CheckSvrCredentialsRequest
Message
CheckSvrCredentialsResponse
Message
GetCreateCallLinkCredentialRequest
Message
GetCreateCallLinkCredentialResponse
Message
GetDeliveryCertificateRequest
Message
GetDeliveryCertificateResponse
Message
GetExternalServiceCredentialsRequest
Message
GetExternalServiceCredentialsResponse
Message
GetGroupCredentialsRequest
Services
service Credentials
Provides methods for obtaining and verifying credentials that allow an authenticated user to authenticate in another service or context without revealing their identity.
rpc GetExternalServiceCredentials
Request: org.signal.chat.credentials.GetExternalServiceCredentialsRequest
Response:
org.signal.chat.credentials.GetExternalServiceCredentialsResponse
Generates and returns an external service credentials for the caller.
rpc GetDeliveryCertificate
Request: org.signal.chat.credentials.GetDeliveryCertificateRequest
Response:
org.signal.chat.credentials.GetDeliveryCertificateResponse
Generates a pair of delivery certificates that the holder can include to identify themselves to a message recipient (but not the server) in a sealed-sender message.
rpc GetGroupCredentials
Request: org.signal.chat.credentials.GetGroupCredentialsRequest
Response:
org.signal.chat.credentials.GetGroupCredentialsResponse
Generates a set of zero-knowledge credentials for various group-related actions.
rpc GetCreateCallLinkCredential
Request: org.signal.chat.credentials.GetCreateCallLinkCredentialRequest
Response:
org.signal.chat.credentials.GetCreateCallLinkCredentialResponse
Generates zero-knowledge credentials for creating call links.
service CredentialsAnonymous
Provides methods for working with previously-generated credentials without revealing an association between the credentials and the caller's identity to the server.
rpc CheckSvrCredentials
Request: org.signal.chat.credentials.CheckSvrCredentialsRequest
Response:
org.signal.chat.credentials.CheckSvrCredentialsResponse
Given a list of secure value recovery (SVR) service credentials and a phone number, checks and returns which of the provided credentials were generated by the user with the given phone number and have not yet expired.
Messages
message CheckSvrCredentialsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | number |
string
|
A phone number in the E164 format to check the passwords against.
Only passwords generated for the user associated with the given number will be marked as |
| 2 | passwords |
repeated
string
|
A list of credentials from previously made calls to |
message CheckSvrCredentialsResponse
For each of the credentials tokens in the CheckSvrCredentialsRequest contains the result of the check.
| Field | Type | Description | |
|---|---|---|---|
| 1 | matches |
map<string, AuthCheckResult>
|
message GetCreateCallLinkCredentialRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | credential_request |
bytes
|
A zero-knowledge credential request |
message GetCreateCallLinkCredentialResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | credential |
bytes
|
A zero-knowledge credential that may be redeemed at or up to one day after the given redemption time |
message GetDeliveryCertificateResponse
A pair of message delivery certificates. The response unconditionally includes certificates with and without the caller's phone number so the server never learns anything about the caller's intent to share their phone number with their contacts.
| Field | Type | Description | |
|---|---|---|---|
| 1 | certificate_with_e164 |
bytes
|
A delivery receipt that includes the caller's phone number; may be empty if the authenticated account does not have a phone number |
| 2 | certificate_without_e164 |
bytes
|
A delivery receipt that does not include the caller's phone number |
message GetExternalServiceCredentialsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | externalService |
org.signal.chat.credentials.ExternalServiceType
|
A service to request credentials for. |
message GetExternalServiceCredentialsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | username |
string
|
A username that can be presented to authenticate with the external service. |
| 2 | password |
string
|
A password that can be presented to authenticate with the external service. |
message GetGroupCredentialsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | redemption_start_seconds |
uint64
|
The earliest time for which to issue group credentials; must be aligned to a UTC day boundary and may be no more than one day in the past at the time of the call. |
| 2 | redemption_end_seconds |
uint64
|
The latest time for which to issue group credentials; must be aligned to a UTC day boundary and no more than seven days in the future at the time of the call. |
message GetGroupCredentialsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | group_credentials |
repeated
org.signal.chat.common.ZkCredential
|
A collection of credentials allowing the holder to anonymously authenticate themselves for group-related actions |
| 2 | call_link_auth_credentials |
repeated
org.signal.chat.common.ZkCredential
|
A collection of credentials allowing the holder to read, update, and delete group call links |
| 3 | pni |
bytes
|
The phone number identifier for which the included credentials were generated. Empty if the account does not have a phone number. |
Enums
enum AuthCheckResult
| Name | Number | Description |
|---|---|---|
AUTH_CHECK_RESULT_UNSPECIFIED |
0 | |
AUTH_CHECK_RESULT_MATCH |
1 | The credentials could be used to make a call to SVR service by the user
associated with the |
AUTH_CHECK_RESULT_NO_MATCH |
2 | The credentials were generated by a different user. |
AUTH_CHECK_RESULT_INVALID |
3 | This status indicates that the corresponding credentials token should no longer be used. This may be because it has expired or invalid, but it can also mean that there is a more recent token in the request which should be used instead. |
enum ExternalServiceType
| Name | Number | Description |
|---|---|---|
EXTERNAL_SERVICE_TYPE_UNSPECIFIED |
0 | |
EXTERNAL_SERVICE_TYPE_DIRECTORY |
1 | |
EXTERNAL_SERVICE_TYPE_PAYMENTS |
2 | |
EXTERNAL_SERVICE_TYPE_STORAGE |
3 | |
EXTERNAL_SERVICE_TYPE_SVR |
4 |