anhtuan159
anhtuan159•4mo ago

Intent has not succeeded

On implementing my own UI I struggle to login with google.
After selecting a Google account and being redirected to the /idp/google/success page, I'm immediately redirected back to the Google account selection screen. This creates an infinite loop. I checked the logs and found the following error:
Error [ConnectError]: [failed_precondition] Intent has not succeeded (IDP-nme4gszsvx)
Error [ConnectError]: [failed_precondition] Intent has not succeeded (IDP-nme4gszsvx)
13 Replies
Rajat Singh
Rajat Singh•4mo ago
hey @anhtuan159 thanks for your question, did you follow any docs while building your own UI?. Can I have a look at it?. What version aree you on as well?. Thanks
anhtuan159
anhtuan159OP•4mo ago
Hey @Rajat Singh thank you for your message! I've identified the issue. It happens during the account linking process. When I log in using the Google provider, a sessionId is created, but it's not yet reflected in the session list 😦 Do you have any suggestions on how I can fix this?
Rajat Singh
Rajat Singh•4mo ago
Hey @anhtuan159 I might have to look a bit more deep in it. I'll get Back to you with that information
anhtuan159
anhtuan159OP•4mo ago
Thanks! I’ll wait for your update
JoseSzycho
JoseSzycho•2w ago
hey guys, do you have an update on this? We're having the same issue
Rajat
Rajat•7d ago
hey @JoseSzycho I have setup google IDP a couple of times since it was asked and now it works fine, pls give it a try again https://zitadel.com/docs/guides/integrate/identity-providers/google 🙂 Make sure: "Account creation allowed" or "Account linking allowed" is enabled for your Google IdP in ZITADEL
yahya
yahya•5d ago
@Rajat i tried to enabled both, but i still got same error.
Rajat
Rajat•5d ago
hey @yahya can u pls share some more info/screenshot
yahya
yahya•4d ago
@Rajat so, i'm using custom auth ui https://github.com/zitadel/typescript for my auth app (self hosted). And I found an issue for users who have Google Login + 2FA enabled. where the user is redirected to a link with this format after select the google account
{app_auth_url}/loginhttps://accounts.google.com/o/oauth2/v2/auth?client_id={client_id}&prompt=select_account&redirect_uri=https%3A%2F%2Fauth.staging.net%2Fidps%2Fcallback&response_type=code&scope=openid+profile+email+phone&state={state}
{app_auth_url}/loginhttps://accounts.google.com/o/oauth2/v2/auth?client_id={client_id}&prompt=select_account&redirect_uri=https%3A%2F%2Fauth.staging.net%2Fidps%2Fcallback&response_type=code&scope=openid+profile+email+phone&state={state}
i checked the log, and i got Intent
GitHub
GitHub - zitadel/typescript: Typescript packages and application to...
Typescript packages and application to showcase the ZITADEL resource API - zitadel/typescript
No description
Rajat
Rajat•4d ago
hey @yahya how are you handling {app_auth_url}/login?? when I see your message this seems wrong {app_auth_url}/loginhttps://accounts.google.como/oauth2/v2/auth? it shoud be https://accounts.google.com/o/oauth2/v2/auth?... are you prefixing this {app_auth_url}/login?.
yahya
yahya•4d ago
Nope, it’s the default path from the typescript repo. The full url is ‘https://{domain}/ui/v2/login/[route]
Rajat
Rajat•3d ago
good morning @yahya I will look into it 🙂
yahya
yahya•3d ago
Thanks @Rajat hopefully there will be good results

Did you find this page helpful?