Unable to signin without access token - Microsoft Credentials

Hello everyone,

I have a problem with the Microsoft credentials :

I created the app in Entra and have the secret key, but when I try to conclude the connection by clicking on the “connect my account” button, I am redirected to a page on my website with a 404 error and I can’t authorize the app to connect to my account.

When I test my workflows, I get the following error: “Unable to sign without access token.”

I use Azure to store n8n with the link: https://n8n.laizy.io/. Laizy.io is my domain, so maybe the problem comes from that?

Information on your n8n setup

  • n8n version: 1.49.0
  • **Database default: SQLite
  • **n8n EXECUTIONS_PROCESS setting : default
  • **Running n8n via Docker
  • **Operating system: linux

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It’s because you didn’t connect your account, so n8n can’t receive a token.
I suppose you haven’t configured the redirect URL in Entra properly.

Normally it’s well configured, I’ll put the 2 step, when i connect i’am rediriged to my website, you can see the problem.


And what does it say in the address bar on the 404-error page? It usually places the error details there

Thanks for your help
The url : https://www.laizy.io/rest/oauth2-credential/callback?code=0.AUEBFKkLj4ECj0iiEOgbLMwoJHa6mNBcvitEgWqkGmFb5VRBAQQ.AgABBAIAAAApTwJmzXqdR4BN2miheQMYAgDs_wUA9P-yqt_xIguTcSiPUIgBm1r8xVAOjwxNTFK8_iGqEAgEEpEgrqE4r1FFGCxCZyna-ErcMOdI19gnOYrLHAIEYRMoem55kNSth-xnuIxkvl3xetr2TnLz4pTWp-m3XocaCRIfC2Bh_vZnomEnH4gsaC15MKhZHXMShRzm4hI_tS8o9TDI-wflRkmuQhTTdBTUSlkicV4hYWw_3nrDdvvG8RIrUjCffW6ZfK7qoT72RF0BEW4IcTWZXp0-EP8JcVON0fI9AveOw0eYBmrMffo_57FFp8o-tZ7m8xk1zGFxPqkUnM6pv0kpSaelO5T_QEjy5QtxWitVKASltCZRHv3u3RGACGV5osQh4AOasogIqKYXQNVdavcnJtbDWs_hnVu066xFVeuwabQry_mp-ZKfQOZEdVSsPOEbZPfV0xeF8bO5_jk48jN1UGJxB_DQWGmp-1fDLAo5YQaeYb826h6SKUoHQ4h56zUTXTsZ5-VNvXTneHrkEfbSG_-FqRmgq_abn1-XkcGFsgMMi0iCchmKZklJh2fZpdi3jCI2e1Elynh4fmyZ7HPZDK1-L0O1_2x0rB8MDtKVsyY5Vu37KXft-GDOVH2ZZjFdkKzHJq4bkj9d-Pl9_hMdszSAksExouqcX-lgf19L2LiZKA8hHqRv-KoEnW7zy52c-jYUla1vcC1kKKUE8OHN1L-jhrSjycFobiZIz_52olCTew3CwogabpgS5Ux9Wk6UcxerXZ3BPCtyo5dGIU-orKHLT1zHtpldpseENbZ6z3jLYniSRcjmP4HehKP99d_PFPyz7KA_U_BCQwSVvSpYL-VIbuMHS1blP1amqbL62LANugQq-3UZAzaylGaiV3nAZ290gEvieL8Pc6kjK6hpaeBJ0ODfBsODxbBAb3Izewx9rJolDinbBkhGzA&state=eyJ0b2tlbiI6IkJSU1hjS0hQLU5vT0I5R3dKMElPSGd6NHFBR0ZVUTE1cXpLayIsImNpZCI6Ik5mVkxMOXVzQkU2OERnUmIifQ%3D%3D&session_state=e70dd135-0d43-4f51-886b-8abfdc8f5ede

In your app the redirect URI needs to be the one that n8n gives you which will likely be something like “https://n8n.laizy.io/rest/oauth2-credential/callback” It looks like you have set the wrong URL and that is why you are being sent to your site and not n8n.

1 Like

Thanks but i already made that :


Hey @TomLaizy,

When you access n8n is that the url you use? When I check https://laizy.io directs to your website but https://n8n.laizy.io directs to n8n.

It looks like you have also set WEBHOOK_URL to the wrong value so you will need to make sure that is https://n8n.laizy.io which is the acutal URL for your n8n instance.

Ok @Jon fine i thinks that is the problem !
Do you know if i can change WEBHOOK_URL or I have to re-create my docker in AZURE ?

You should be able to change it but you will need to stop and start your n8n container.

I think I need to tell that to the person woo created the container in AZURE…
Thanks for your help @Jon

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.