Questions tagged [android-credential-manager]
Questions and comments related to the Android CredentialManager (https://developers.google.com/identity/android-credential-manager)
android-credential-manager
24
questions
0
votes
0
answers
31
views
Credential Manager Using Firebase - How do I resolve the error "No credentials available"
I followed this tutorial on youtube https://www.youtube.com/watch?v=YcAUD1rLJPg&t=182s and I was able to implement google sign in in my app. The app works totally fine in debug mode on my device ...
0
votes
2
answers
47
views
Failed to Launch Selector UI: Google Sign-In with CredentialManager in Android
I'm trying to implement Google Sign-In in my Android app using CredentialManager. However, I'm encountering an issue where the selector UI fails to launch, and I receive the error message: "...
0
votes
2
answers
40
views
Android CredentialManager: createCredential() method returns error in CredentialManager
I'm testing the abilities of the Android Credential Manager APIs to work with passkeys over W3C standards. While everything is set up according to documentation. I am getting error everytime in ...
0
votes
1
answer
60
views
When authorizing with the Android Authorization API, how can I prevent the permission confirmation popup from appearing every time?
I have successfully logged in with a Google account using CredentialManager and obtained a ServerAuthCode using the Authorization API.
However, there is a problem. Even though I use the same account ...
0
votes
0
answers
56
views
How to Retrieve Last/Current Signed-In User Information When Migrating from Legacy Google Auth to CredentialManager?
Problem :
I have migrated GoogleSignIn Legacy to the New Credential Manager Library.
Now In the Old App, I have checked every time before performing any operation is the user SignIn Already? But In ...
1
vote
2
answers
119
views
Google Sign In not working on device, but working fine in emulator?
I am working on an app purely for internal use, not for Play Store or anything like that. It is to be installed on our Zebra scanner which is running Android 10.
The purpose of the app is to browse ...
0
votes
0
answers
30
views
How to use Android Espresso's intenting with Credential Manager
After migration to Credential Manager I can't find a way how to test sign-in scenarios for different cases.
When I used to use GoogleSignIn it was simple. The following code helped me:
protected fun ...
1
vote
1
answer
124
views
How to get authorized user's email and how to sign out the authorized user using Google Identity in android?
I am calling requestGoogleDriveAuthorization() method for a button click listener and authorize a user.
private val authorizationResultLauncher = registerForActivityResult(
...
0
votes
0
answers
140
views
Migration from GoogleSignIn to Credential Manager. Get 'idToken' silently
I'm trying to migrate from GoogleSignIn to Credential Manager.
GoogleSignIn implementation
After authetication, I need to know idToken from time to time to make a request to our server
val ...
0
votes
1
answer
232
views
How to authenticate Google Sign In using CredentialManager and authorize to Google Drive API in Android?
I am trying to achieve the latest Google sign in criteria for authentication then authorize for Google Drive API.
I am calling requestGDriveSignInUpdated() method for a button click.
private fun ...
0
votes
1
answer
208
views
New Google Credential Manager is throwing a TransactionTooLargeException
I am trying to migrate to the new Google SignIn with Credential Manager.
Following the documentation and ending up with this integration:
val option = GetGoogleIdOption.Builder()
....
1
vote
2
answers
266
views
Temporary block when using Credential Manager to Sign in with Google
I'm testing the 'Sign in with Google' flow with Credential Manager by following the indications in the official docs. So far, the process works as intended: it shows a bottom sheet with the available ...
0
votes
1
answer
273
views
Android - GetSignInWithGoogleOption for Sign in to Google Drive - GoogleIdTokenCredential cannot be cast to HttpRequestInitializer
I want to achieve a simple Google sign in with google button and backup data to Google Drive. As the old GoogleSignIn is deprecated.
How to check, if user is logged in to Google or not - I need to ...
0
votes
1
answer
208
views
Android - login with Google button and Backup to Google Drive
In my android app I have a Google login button - when the users click on it, he logs in to Google accound and then can backup database to Google Drive. This works fine, but now the GoogleSignIn is ...
1
vote
1
answer
453
views
Android Credential Manager - Auto SignIn with lastSignedInAccount?
I am integrating Credential Manager API for signing in users in my Android app as below:
lifecycleScope.launch {
val options = GetGoogleIdOption.Builder()
....