LoginViewModel
View model for the login activity managing OAuth authorization URL generation, server selection, and authentication flow state.
Parameters
The boot configuration providing default OAuth client credentials, redirect URI, and scopes
The coroutine context used for background work such as OAuth configuration resolution and URL generation. This parameter is intended for testing purposes only. Defaults to IO
Types
Models an additional bottom bar button the login view can display.
An observer used to set the web view's OAuth authorization URL from the selected login server.
An observer used to set the pending login server from the login server manager's selected login server.
Properties
Additional Auth Values used for login.
BottomAppBar that will be used instead of the default.
The selected login server's OAuth authorization URL for use in the external browser custom tab when browser-based authentication is active. This provides the login flow with the requirements for advanced authentication, such as client certificates.
A custom button to display on the login view bottom app bar.
The Salesforce Identity API UI Bridge front door bridge URL for use in the web view when overriding the standard login URL
Loading Indicator
The selected login server's OAuth authorization URL for use in the web view when browser-based authentication is inactive
The login server that has been selected by the login server manager, has an authentication configuration and is ready for use
Value representing if the back button should be shown on the login view.
Setting this option to true will enable a mode where only a custom tab will be shown. The first server will be launched in a custom tab immediately and the user will not be able to switch servers. The LoginActivity is ended if the user attempts to back out of the custom tab.
TopAppBar text Color. Defaults to black on light backgrounds and white on dark backgrounds. Back and menu buttons will match this color.
TopAppBar that will be used instead of the default.
TopAppBar Color. Defaults to WebView background color.
Functions
Clear WebView Cookies.
Clear WebView Cache.
Automatically log in using the provided UI Bridge API parameters.
Reloads the WebView with a newly generated authorization URL.