How to configure microsoft account by oauth in erpnext

Hi Community,
i had tried to configure microsoft 365 account with erp email account transaction by oauth but i facing this error can u please help me out




Thanks in Advance

Hi @satyamsathya978:

Checked this?





I had tried using your steps aleady i dont know why it is not integrating please help
Thanks in Advance

Hi @satyamsathya978:

Is your site running under https?

https://erpnext-177443-0.cloudclusters.net/app/home

Check …


but i cant able to save in microsoft azure in redirect url;
is there any way to disable smtp in microsoft and we can connect using outlook service in email account transaction
Thanks in Advance

Request Id: fab59fd5-2565-4a4c-b8c6-f5afbc441f00
Correlation Id: 35402063-6e2e-4934-87e1-c5e1156de75e
Timestamp: 2024-09-20T09:04:53Z
Message: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration. Client app ID: e37ba4dc-1191-487d-883c-308d5ee9a36f(Frappe). Resource value from request: https://outlook.office365.com. Resource app ID: 00000002-0000-0ff1-ce00-000000000000. List of valid resources from app registration: 996def3d-b36c-4153-8607-a6fd3c01b89f, 00000003-0000-0000-c000-000000000000.
can u check this please
Thanks in Advance

Hi @satyamsathya978:

Please follow carefully the steps provided, and check if your site is running under https. AFAIK Azure/M365 just allows https or localhost endpoints.

Hope this helps.


how can i change redirect uri “http” to “https”
Thanks in Advance

Hi @satyamsathya978:

Maybe connected app was created before install ssl certificate?

Check your host name in site_config.json, maybe is not https …

Create connected app again or change redirect_uri value directly on db, something like this:

update `tabConnected App`
set redirect_uri="https://yourredirecturi ..." where name="yourappname"

(be careful)

Hope this helps.

1 Like

Following sets it

How get_url works?

1 Like