Standardise casing of identity server
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
This commit is contained in:
parent
e61c8c28bb
commit
74104d7d84
|
@ -4,7 +4,7 @@ Issue: #607
|
||||||
PR: #1354
|
PR: #1354
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
Identity Servers support contact discovery on Matrix by letting people look up Third Party Identifiers to see if the owner has publicly linked them with their Matrix ID.
|
Identity servers support contact discovery on Matrix by letting people look up Third Party Identifiers to see if the owner has publicly linked them with their Matrix ID.
|
||||||
|
|
||||||
## Implementation
|
## Implementation
|
||||||
|
|
||||||
|
@ -87,6 +87,6 @@ This screen displays the identity server configuration and the binding of the us
|
||||||
This screen is a form to set a new identity server URL
|
This screen is a form to set a new identity server URL
|
||||||
|
|
||||||
## Ref:
|
## Ref:
|
||||||
- https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 is a good summary of the role of an Identity server and the proper way to configure and use it in respect to the privacy and the consent of the user.
|
- https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 is a good summary of the role of an identity server and the proper way to configure and use it in respect to the privacy and the consent of the user.
|
||||||
- API documentation: https://matrix.org/docs/spec/identity_service/latest
|
- API documentation: https://matrix.org/docs/spec/identity_service/latest
|
||||||
- vector.im TOS: https://vector.im/identity-server-privacy-notice
|
- vector.im TOS: https://vector.im/identity-server-privacy-notice
|
||||||
|
|
|
@ -191,7 +191,7 @@ internal class DefaultIdentityService @Inject constructor(
|
||||||
} else {
|
} else {
|
||||||
// Disconnect previous one if any, first, because the token will change.
|
// Disconnect previous one if any, first, because the token will change.
|
||||||
// In case of error when configuring the new identity server, this is not a big deal,
|
// In case of error when configuring the new identity server, this is not a big deal,
|
||||||
// we will ask for a new token on the previous Identity server
|
// we will ask for a new token on the previous identity server
|
||||||
runCatching { identityDisconnectTask.execute(Unit) }
|
runCatching { identityDisconnectTask.execute(Unit) }
|
||||||
.onFailure { Timber.w(it, "Unable to disconnect identity server") }
|
.onFailure { Timber.w(it, "Unable to disconnect identity server") }
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ internal interface IdentityAuthAPI {
|
||||||
suspend fun ping()
|
suspend fun ping()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ping v1 will be used to check outdated Identity server
|
* Ping v1 will be used to check outdated identity server
|
||||||
*/
|
*/
|
||||||
@GET("_matrix/identity/api/v1")
|
@GET("_matrix/identity/api/v1")
|
||||||
suspend fun pingV1()
|
suspend fun pingV1()
|
||||||
|
|
|
@ -86,7 +86,7 @@ internal interface ProfileAPI {
|
||||||
suspend fun addMsisdn(@Body body: AddMsisdnBody): AddMsisdnResponse
|
suspend fun addMsisdn(@Body body: AddMsisdnBody): AddMsisdnResponse
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Msisdn code (same model than for Identity server API)
|
* Validate Msisdn code (same model than for identity server API)
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
suspend fun validateMsisdn(@Url url: String,
|
suspend fun validateMsisdn(@Url url: String,
|
||||||
|
|
|
@ -59,7 +59,7 @@ internal class CreateRoomBodyBuilder @Inject constructor(
|
||||||
val invite3pids = params.invite3pids
|
val invite3pids = params.invite3pids
|
||||||
.takeIf { it.isNotEmpty() }
|
.takeIf { it.isNotEmpty() }
|
||||||
?.let { invites ->
|
?.let { invites ->
|
||||||
// This can throw Exception if Identity server is not configured
|
// This can throw an exception if identity server is not configured
|
||||||
ensureIdentityTokenTask.execute(Unit)
|
ensureIdentityTokenTask.execute(Unit)
|
||||||
|
|
||||||
val identityServerUrlWithoutProtocol = identityStore.getIdentityServerUrlWithoutProtocol()
|
val identityServerUrlWithoutProtocol = identityStore.getIdentityServerUrlWithoutProtocol()
|
||||||
|
|
Loading…
Reference in New Issue