Authorization Request

This is my URL “https://eshop.erpnext.com/api/method/frappe.integration_broker.oauth2.authorize?client_id=444cf344fd&scope=all openid&response_type=code&redirect_uri=http://nccnetherlands.com/n/view_pages.php/”, but this URL does not take take me to login page. Why?

Somebody can check this URL, if it is correct? Because it is not working.

Change it to

https://eshop.erpnext.com/api/method/frappe.integrations.oauth2.authorize?client_id=444cf344fd&scope=all openid&response_type=code&redirect_uri=http://nccnetherlands.com/n/view_pages.php/

Docs: https://frappe.github.io/frappe/user/en/guides/integration/using_oauth

Note: http://nccnetherlands.com/n/view_pages.php should be an REST API endpoint on your server which will receive the Authorization code and requests token endpoint with the received auth code.

No, it is still not working. Is that Authorization Request URL is correct? Because till day before yesterday it was working and i found from yesterday it is not working. Please can you check it what is the reason? May be you the API is changed.

https://eshop.erpnext.com/api/method/frappe.integration_broker.oauth2.authorize will work on V7

https://eshop.erpnext.com/api/method/frappe.integrations.oauth2.authorize will work on v8

Revant_one, thank you. But why ERPNext is changing their API?

Hi Revant_One,
I have another question;
This “https://eshop.erpnext.com/api/method/frappe.integrations.oauth2.authorize” authorization request URL works, but this “https://erpnext.com/api/method/frappe.integrations.oauth2.authorize” authorization request URL does not works. Why?. In the first authorization request URL i have also added application “eshop” after http and it works, but problem is other user cannot login. Only the user with email this account can login. But i want that every user can login.

All the system users and website users hosted on https://eshop.erpnext.com/ will be able to login.

https://erpnext.com won’t allow your client app and users. It is separate from https://eshop.erpnext.com/

Thank You. Is there is any way how we can create authorization process for all (global) users?

No, right now there isn’t any way you can add client in erpnext.com.

Thank you.

I have another question;
What are the scopes that i can pass. And what happen if i leave defaults scope “all openid”?

Refer this post for details about scope