private final Uri ISSUER_URI = Uri.parse("https://accounts.google.com");
private final Uri AUTH_ENDPOINT = Uri.parse("https://accounts.google.com/o/oauth2/v2/auth");
private final Uri TOKEN_ENDPOINT = Uri.parse("https://oauth2.googleapis.com/token");
private static final String CLIENT_ID = "741813112780-jimvtogafodjc5egg35ejgf8qbr60rjq.apps.googleusercontent.com";
//private static final String REDIRECT_URI = "你的重定向URI"; // 与开发者控制台配置一致
private static final String REDIRECT_URI = "com.example.androidwhiteboard:/oauth2redirect"; // 👈 就用这个
//private static final String REDIRECT_URI = "com.googleusercontent.apps.741813112780-3jn17rd1eraghdju9s1rg8ml8f7suott:/oauth2redirect";
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="com.example.androidwhiteboard" />
manifestPlaceholders = [
'appAuthRedirectScheme': 'com.googleusercontent.apps.741813112780-3jn17rd1eraghdju9s1rg8ml8f7suott'
]
Hello, here is my detailed configuration. The login succeeds, but no callback is received on the app side.
private final Uri ISSUER_URI = Uri.parse("https://accounts.google.com");
private final Uri AUTH_ENDPOINT = Uri.parse("https://accounts.google.com/o/oauth2/v2/auth");
private final Uri TOKEN_ENDPOINT = Uri.parse("https://oauth2.googleapis.com/token");
private static final String CLIENT_ID = "741813112780-jimvtogafodjc5egg35ejgf8qbr60rjq.apps.googleusercontent.com";
//private static final String REDIRECT_URI = "你的重定向URI"; // 与开发者控制台配置一致
private static final String REDIRECT_URI = "com.example.androidwhiteboard:/oauth2redirect"; // 👈 就用这个
//private static final String REDIRECT_URI = "com.googleusercontent.apps.741813112780-3jn17rd1eraghdju9s1rg8ml8f7suott:/oauth2redirect";
manifestPlaceholders = [
'appAuthRedirectScheme': 'com.googleusercontent.apps.741813112780-3jn17rd1eraghdju9s1rg8ml8f7suott'
]
Hello, here is my detailed configuration. The login succeeds, but no callback is received on the app side.