Package org.signal.chat.challenge
Message
AnswerCaptchaChallengeRequest
Message
AnswerChallengeRequest
Message
AnswerChallengeResponse
Message
AnswerPushChallengeRequest
Message
RequestPushChallengeRequest
Services
service Challenge
rpc AnswerChallenge
Request: org.signal.chat.challenge.AnswerChallengeRequest
Response:
org.signal.chat.challenge.AnswerChallengeResponse
Submit proof of a challenge completion.
Some server endpoints (the "send message" endpoint, for example) may return a response indicating the client must complete a challenge before continuing. Clients may use this endpoint to provide proof of a completed challenge. If successful, the client may then continue their original operation.
rpc RequestPushChallenge
Request: org.signal.chat.challenge.RequestPushChallengeRequest
Response:
org.signal.chat.challenge.RequestPushChallengeResponse
Requests that a challenge value be sent to the authenticated account's primary device via push notification. Once received, callers may present the challenge value via the HandleChallengeResponse RPC.
APNs challenge payloads will be formatted as follows:
{
"aps": {
"sound": "default",
"alert": {
"loc-key": "APN_Message"
}
},
"rateLimitChallenge": "{CHALLENGE_TOKEN}"
}
FCM challenge payloads will be formatted as follows:
{"rateLimitChallenge": "{CHALLENGE_TOKEN}"}
Messages
message AnswerCaptchaChallengeRequest
(Nested in org.signal.chat.challenge.AnswerChallengeRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | captcha |
string
|
A string representing a solved captcha Example: signal-hcaptcha.30b01b46-d8c9-4c30-bbd7-9719acfe0c10.challenge.abcdefg1345 |
message AnswerChallengeRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | token |
string
|
The opaque token id from the ChallengeRequired response returned by the server endpoint that requested the challenge |
|
oneof request
|
|||
| 2 | push |
org.signal.chat.challenge.AnswerChallengeRequest.AnswerPushChallengeRequest
|
|
| 3 | captcha |
org.signal.chat.challenge.AnswerChallengeRequest.AnswerCaptchaChallengeRequest
|
|
message AnswerChallengeResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | success |
bool
|
Whether the challenge proof was accepted |
message AnswerPushChallengeRequest
(Nested in org.signal.chat.challenge.AnswerChallengeRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | challenge |
string
|
The challenge string provided to the client via a push payload |
message RequestPushChallengeResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | sent_push_challenge |
google.protobuf.Empty
|
The server attempted to send a challenge value to the authenticated account's primary device via a push notification. |
| 2 | no_push_token |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account's primary device does not have a push token. |
message SentPushChallenge
(Nested in org.signal.chat.challenge.RequestPushChallengeResponse
)
| Field | Type | Description |
|---|