AuthWebViewViewModelState
-
The authorization endpoint is not known yet, e.g. an OAuth configuration is being fetched from a backend or an OpenID configuration is being retrieved from the corresponding OpenID provider.
The view should be displaying a generic “activity” state.
-
The endpoint is known now.
The view should start loading it and monitoring all requests looking for a redirect one.
-
The request to a redirect URL contains a successful response and the flow is being finalized by fetching an access token, etc.
The view can display another “activity” state here or continue displaying the web view in its previous state.
-
The flow has failed at one of the steps.
The view should display a generic error state or dismiss automatically keeping the current state. In the latter case it is assumed that the result will be clear for the user from other elements of the app.
-
The flow has been completed successfully.
The view should display a “success state” or dismiss automatically keeping the current state. In the latter case it is assumed that the result will be clear for the user from other elements of the app.
-
The authentication has been cancelled by the user.
The view is expected to be dismissed without changing what was displayed in it.