Auth0 Home Blog Docs

Intermittent error: Unknown or invalid login ticket

signup
chrome
login
cross-origin-authent
safari

#1

We switched to auth0-js 9 from auth0-lock (10, then 11) a few weeks ago, and things were working swimmingly until Thursday morning, when some of our team members were suddenly unable to login or signup. We have the cross origin verification page setup, it works well, and we are even logging customers out before logging in or signing up, but still the intermittent error persists as follows:

"error": {
  "message": "Unknown or invalid login ticket.",
  "oauthError": "access_denied",
  "type": "oauth-authorization"
},

I see that this is occuring for others beginning around the same time:

https://community.auth0.com/questions/14997/multiple-errors-on-chrome-broswer
https://community.auth0.com/questions/15109/get-an-error-unknown-or-invalid-login-ticket

What exactly does this error message mean? Can anyone help me discern where it comes from? I see the generic “third party cookies” and “browser not supported” responses, but this is an intermittent error that we’ve seen in chrome and safari, on various machines, that seems to usually go away when Auth0 cookies are cleared, and does not go away consistently when the Auth0 tenant logout url is visited.

Is there any documentation surrounding this specific error? Any response from Auth0 regarding the few of us who are seeing it with no consistent repro or explanation?

My PM received one generic response from Auth0 stating “Thanks for reaching out. Please look at our documentation on Cross-Origin Authentication…”, and nothing past that. Any thoughts from anyone? Anyone? …Bueller?


Get an error Unknown or invalid login ticket
#2

Same here. We see it mostly on Safari.


#3

Hi, Manuel,

We were able to connect with support, and it indeed seems like this is a CORS problem due to the auth0 upgrade. We’re about to switch to a custom domain, which appears to solve the problem. The documentation indicates that it’s still in beta, but it appears that with most flows it’s production ready.

Setting up the custom domain was trivial for us, and not having to deal with the CORS issues and having our own auth subdomain are definitely wins. It does appear to be developer (read: paid) accounts only, so if that’s your case, you may need to opt for the universal/hosted login.

Cheers-
Matthew


#4

We already had a custom domain set up before we started experiencing this problem recently. We are on the latest version of the lock widget and to the best of my knowledge we haven’t upgraded it recently so I doubt it is causing the problems. We are stuck.


Safari - Unable to configure verification page
#5

The invalid login ticket error some have been experiencing, there was a fix deployed recently and should now be resolved. Please do not hesitate to respond if you notice any unexpected behaviour.


#6

I got the same issue yesterday and today.

We have a custom login page and in the callback we got error=access_denied&error_description=Unknown%20or%20invalid%20login%20ticket.&state=b4qZRypT7isR5UwbidIixoG~mpKzI1-g

What can we do to solve this?

Thanks,
Miguel


#7

:wave: @miguel.pinto, are you currently using Custom Domains in your tenant? And are you seeing this across a specific browser?


#8

Hi @kim.noel,

No, we are not using custom domains (yet).

It was one of our users who reported this. I believe he was using either IE or Edge but one of my colleagues (developer) had this as well in Chrome.


#9

okay, no problem! Thanks for taking the time to respond. Sorry for all the questions, but just a few more! Are you using Lock or Auth0.js? Which version? Lastly, depending on the case, have you implemented the the Cross-Origin Verification Page ?


#10

we are using angular-auth0 3.0.0 and loading auth0.js from CDN via:

https://cdn.auth0.com/js/auth0/9.0.1/auth0.min.js

We do not have the Cross-Origin Verification Page.


#11

the error access_denied&error_description=Unknown%20or%20invalid%20login%20ticket is most likely due to blocking of 3rd party cookies in the browser (in chrome for example this is usually reproducible by going to chrome://settings/content/cookies and enable Block third-party cookies) if you are using embedded login (collect the user credentials and use a cross domain authentication) I would suggest looking into implementing theCross-Origin Verification Page as this has resolved the issue in some cases. Other solutions would include moving to Universal Login or implementing custom domains this way the cookies are no longer third-party and are not blocked by browsers.


#12

Are the custom domains already out of preview? Can/should they be used in production scenarios?


#13

Yes custom domains can now be used in production tenants.

Also, just to include the information for those curious about the current features that we support with custom domains: https://auth0.com/docs/custom-domains#features-supporting-use-of-custom-domains and the configuration steps are here: https://auth0.com/docs/custom-domains#configure-the-login-page


#14

Kim, we have applied the custom domain solution and now some users are reporting another error:

“Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc”

The only thing we changed code wise was the auth0 domain to the custom domain.

I’m not able to reproduce the issue myself. The users get this in IE and Chrome (at least).

Any clue of what the issue might be?


#15

@miguel.pinto do you know what they are doing when they get the error? Is this upon login?


#16

We have a custom login page (using auth0.js) and they get this error upon login as response from auth0 (I think)


#17

Thank you! I am looking into this. I will reply back in a bit.


#18

This started happening yesterday after I enabled the custom domain and started using it in my application.


#19

Gotcha! But when you try logging in it works for you? Just not for some users? Our version of auth0.js looks to be okay, version 9 or higher. Can you check if CORS is allowed in Allowed Origins and Allowed Web Origins?


#20

Yes, for me and other users it works but for some it doesn’t work.

In the Allowed Web Origins I had my https://www.{mydomain}.com and in Allowed Origins (CORS) https://*.{mydomain}.com. I added https://www.{mydomain}.com.