AbstractAbstractusernameSpecifies the username whose Server must be updated.
Providing the username is required.
The username is the technical user identifier stored in the Account.username property. Do not provide the login identifier (for example the user's email address) here. We recommend always using the username provided via LocalData.accounts.
the username.
the UpdateServer object.
AbstractnewSpecifies the new base URL of the server. If not provided, the base URL of the Server associated with the account will not be changed.
Providing at least one of the UpdateServer.newBaseUrl or UpdateServer.newAlternativeBaseUrls is required.
The base URL of the server is the URL that the SDK will use to do in-band operations (Authentication, Deregistration, DeviceInformationChange, etc.)
the new base URL.
the UpdateServer object.
AbstractnewSpecifies the alternative base URLs of the server. If not provided, the alternative base URLs of the Server associated with the account will not be changed.
Providing at least one of the UpdateServer.newBaseUrl or UpdateServer.newAlternativeBaseUrls is required.
When provided, this replaces the account's entire current set of alternative base URLs. It does not extend or merge with it. To add a new alternative base URL while keeping the existing ones, pass the full desired set, including the URLs already associated with the account (see Server.alternativeBaseUrls).
The alternative base URLs are used for out-of-band operations. If the redeem URL of an out-of-band payload has a base URL matching one of the alternative base URLs, then the SDK will use that base URL to perform the out-of-band operation.
The alternative base URLs are also used for in-band registration when there is already an authenticator for the user being registered. The SDK will accept to use any of the alternative base URLs to do the operation (see Registration.serverUrl).
the alternative base URLs.
the UpdateServer object.
AbstractexecuteExecutes the update asynchronously.
Updates the Server associated with the account of the provided username in the local SDK state.
The object that can be used to update the Server associated with a given user account.
This is a local-only operation: no network calls are made.
This operation can be used in different scenarios:
Usage example:
The old base URL is not added to the alternative base URLs automatically. If out-of-band links with the old domain must still be accepted after changing the base URL with UpdateServer.newBaseUrl, include it in UpdateServer.newAlternativeBaseUrls.
The update is applied to the registrations of the account and to its device information. If it fails, the registrations are restored, so both keep referring to the same server. Concurrent executions are serialized.
See
LocalData.updateServerOperation, Server