Verified Commit bc424fac authored by Soren's avatar Soren

Work on some federation identification things

parent 19cbcc34
......@@ -13,8 +13,7 @@ message FederationRequest {
// The intended receiver
string receiver = 2;
// The identifier of the request. This should
// be a dialback key like described in
// https://xmpp.org/extensions/xep-0185.html .
// be a dialback key like described in XEP-0185.
// The receiver will look up the origin
// and ask if the identifier is in fact correct.
bytes identifier = 3;
......@@ -30,3 +29,23 @@ message FederationAccepted {
string origin = 1;
string receiver = 2;
}
message FederationDenied {
enum Reason {
FEDERATION_DENIED_REASON_INVALID = 0;
FEDERATION_DENIED_REASON_CHALLENGE_FAILED = 1;
FEDERATION_DENIED_REASON_WRONG_RECEIVER = 2;
FEDERATION_DENIED_REASON_ORIGIN_UNREACHABLE = 3;
FEDERATION_DENIED_REASON_BLOCKED = 4;
}
string origin = 1;
string receiver = 2;
Reason reason = 3;
}
message FederationResponse {
oneof response {
FederationAccepted accepted = 1;
FederationDenied denied = 2;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment