mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 22:55:46 +03:00
Better documentation
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
19dfe21a3d
commit
8f06ba68a8
1 changed files with 11 additions and 1 deletions
|
@ -355,6 +355,16 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
|
||||
private String baseUrl;
|
||||
|
||||
/**
|
||||
* This function facilitates the login process by anonymously posting a login request to a specified URL.
|
||||
* After posting the request, it retrieves the login URL for completing the login flow.
|
||||
* The login flow version used is v2.
|
||||
*
|
||||
* @param url The URL where the login request is to be anonymously posted.
|
||||
* This URL should handle the login request and return the login URL.
|
||||
* It's typically the entry point for the login process.
|
||||
* Example: "https://example.com/index.php/login/v2"
|
||||
*/
|
||||
private void anonymouslyPostLoginRequest(String url) {
|
||||
baseUrl = url;
|
||||
|
||||
|
@ -391,7 +401,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
}
|
||||
|
||||
/**
|
||||
* @Deprecated It uses webview and login flow v1
|
||||
* @Deprecated This function is deprecated. Please use the {@link #anonymouslyPostLoginRequest(String)} method instead, which utilizes the improved login flow v2.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressFBWarnings("ANDROID_WEB_VIEW_JAVASCRIPT")
|
||||
|
|
Loading…
Reference in a new issue