Merge pull request #7124 from nextcloud/loginQR

use custom SSO value for authTokenType -> to detect if account is added by SSO
This commit is contained in:
Tobias Kaminsky 2020-10-29 09:46:48 +01:00 committed by GitHub
commit d4d22c4a27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -707,7 +707,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
if (extras == null) {
return false;
} else {
return extras.getParcelable("accountAuthenticatorResponse") != null;
String authTokenType = extras.getString("authTokenType");
return "SSO".equals(authTokenType);
}
}