How can i get code (code=wa1YuQMff2ZXEAu2ZBHLpJRQXcGZdr)


curl -X POST https://{your frappe instance}/api/method/frappe.integrations.oauth2.authorize
–data-urlencode ‘client_id=511cb2ac2d’
–data-urlencode ‘state=444’
# base64encode(sha256(‘420’)) => 21XaP8MJjpxCMRxgEzBP82sZ73PRLqkyBUta1R309J0
# --data-urlencode ‘code_verifier=21XaP8MJjpxCMRxgEzBP82sZ73PRLqkyBUta1R309J0’
–data-urlencode ‘response_type=code’
–data-urlencode ‘scope=openid%20all’
–data-urlencode ‘redirect_uri=https://app.getpostman.com/oauth2/callback
OAuth 2
i am trying to run this url on browser and postman ,

This is a GET request. And the data is query params to that GET request.

There is OAuth 2 section in postman, try using that.

@revant_one yes i did but i did not get code
http://0.0.0.0:8008/api/method/frappe.integrations.oauth2.authorize?client_id=b08ee1aa84&state=444&response_type=code&scope=all&redirect_uri=https://www.getpostman.com/oauth2/callback
client_id:b08ee1aa84
state:444
response_type:code
scope:all
redirect_uri:https://www.getpostman.com/oauth2/callback



and i try on web
Hmm. We’re having trouble finding that site.

We can’t connect to the server at fhbjgbiflinjbdggehcddcbncdddomop.chromiumapp.org.

If that address is correct, here are three other things you can try:

Try again later.
Check your network connection.
If you are connected but behind a firewall, check that Firefox has permission to access the Web.

I don’t know postman in depth.

The tests seems to be passing Merge pull request #13271 from frappe/mergify/bp/version-13-hotfix/pr… · frappe/frappe@f200c36 · GitHub

This test frappe/test_oauth20.py at develop · frappe/frappe · GitHub

I ran into the same problem, How did you solve this problem?