You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
* Rotate your keys for a given session. The `session_id` in the supplied `csr` must correspond to the
26
-
* session token used in the `authorization`-Header.
27
-
* @paramcsr A new [certificate signing request (CSR)](/Protocol%20Specifications/core/#71-home-server-signed-certificates-for-public-client-identity-keys-id-cert) with the same session ID
28
-
* @returns Contains your new ID-Cert, along with a new session token.
29
-
*/
30
-
oprotateIdCert(@bodycsr:string;): {
31
-
@doc("Contains your new ID-Cert in PEM encoding, along with a new session token.")
32
-
@statusCodestatusCode:201;
33
-
@bodynewIdCert: {
34
-
@doc("The generated [ID-Cert](/Protocol%20Specifications/core/#71-home-server-signed-certificates-for-public-client-identity-keys-id-cert) in PEM format.")
35
-
@example("------BEGIN CERTIFICATE------...")
36
-
id_cert:string,
37
-
@doc("An authorization secret, called a \"token\", valid for this `id_cert`.")
38
-
token:string
39
-
}
27
+
* Request a new ID-Cert, usually done when wanting to authenticate a new session, or after
28
+
* an ID-Cert has been revoked, to re-authenticate a session.
29
+
*/
30
+
opnewIdCert(
31
+
@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
* Invalidate a session and its' associated ID-Cert by providing the session ID associated
133
+
* with it.
134
+
*/
135
+
opdeleteSession(
136
+
@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
opname(@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
@doc("Sensitive actions require a second factor of authentication to be executed. Read [section 4.1.2 of the protocol definition](https://docs.polyphony.chat/Protocol%20Specifications/core/#412-sensitive-actions) for more information.")
0 commit comments