I am unable to get an access token. I have used the client secret and id.
I have been trying to get an access token, I have created the app and I have used the client key and secret but I cannot get the access token.
Even using the following link which gets the details say it is Unauthorized
Solved! Go to Solution.
Hi @Keshigan Govender to use consumer id and secret you can generate access token, later u create another proxy in that you have to use that access token, To call that access token use "Bearer " in postman.
The API mentioned in your post, Gets details of a specific OAuth 2.0 access token
It does not give you an access token, you need to use an existing access token in the request URI.
Try below API to get access token based on dev id, app id
https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/oauth2/search
Is there a token URL that I can call with the consumer id and secret as I am using postman.
Hi @Keshigan Govender to use consumer id and secret you can generate access token, later u create another proxy in that you have to use that access token, To call that access token use "Bearer " in postman.
How do you use it get the bearer token?
I have used the following https://login.apigee.com/oauth/client_credential/accesstoken to the access token.
I get the following response from the above mentioned call:
{ "access_token": "eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI3NGI0YmM3Yy04ZmE4LTRkNzItOGJmOS0xNjI1YzRmYTJlZjMiLCJzdWIiOiI2NjY2YWIzNi05YTFlLTQ0YjItOGEzYy05ZDgxMTM2YjQwZGIiLCJzY29wZSI6WyJzY2ltLmVtYWlscy5yZWFkIiwic2NpbS5tZSIsIm9wZW5pZCIsInBhc3N3b3JkLndyaXRlIiwiYXBwcm92YWxzLm1lIiwic2NpbS5pZHMucmVhZCIsIm9hdXRoLmFwcHJvdmFscyJdLCJjbGllbnRfaWQiOiJlZGdlY2xpIiwiY2lkIjoiZWRnZWNsaSIsImF6cCI6ImVkZ2VjbGkiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX2lkIjoiNjY2NmFiMzYtOWExZS00NGIyLThhM2MtOWQ4MTEzNmI0MGRiIiwib3JpZ2luIjoidXNlcmdyaWQiLCJ1c2VyX25hbWUiOiJrZXNoaS5nb3ZlbmRlckBiY3guY28uemEiLCJlbWFpbCI6Imtlc2hpLmdvdmVuZGVyQGJjeC5jby56YSIsImF1dGhfdGltZSI6MTU2ODgwNDI4NywiY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I6InVhYSIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfbmFtZSI6Imtlc2hpLmdvdmVuZGVyQGJjeC5jby56YSIsIm9yaWdpbiI6InVzZXJncmlkIiwidXNlcl9pZCI6IjY2NjZhYjM2LTlhMWUtNDRiMi04YTNjLTlkODExMzZiNDBkYiIsImFsIjowLCJyZXZfc2lnIjoiY2Y3NmE3ZDgiLCJhdWQiOlsiZWRnZWNsaSIsInNjaW0uZW1haWxzIiwic2NpbSIsIm9wZW5pZCIsInBhc3N3b3JkIiwiYXBwcm92YWxzIiwic2NpbS5pZHMiLCJvYXV0aCJdfQ.KCxSCtoGYIskIuxL1Xo-2U23YPuB46RJy8_QmNdPCAKH78W4FI_3PiK_TX4fk8MnfB0dje4mlLqjRf1OkBSfoBV1M2FwheNMEqlR7q9iRrmARIniKbV6sFlbJChzk1GCejfBNlQruOirqFcw73ZYHjdt9gKJXviubtMXfIf8e-MpkMd-t_2X0WQi-gJdfD-qaCG3RzN_F6vNzQp9LoDXr1MVPPd3UOzCu7uTh_5EEfAuwcfh7iEBSNzAHfWu2F77_zHlWhwr6MAxlDRaLxqev61DUQDrCDp-g0bEc26dPCNS194KOWgKk_PObFkozXV-sYEGDqxMJeye63L6CiC-Kw", "expires_in": 43199, "scope": "scim.emails.read scim.me openid password.write approvals.me scim.ids.read oauth.approvals", "jti": "74b4bc7c-8fa8-4d72-8bf9-1625c4fa2ef3" }
Will you please follow this video u will get solution
https://www.youtube.com/watch?v=Gl15sVg5EBc&list=PLsWqc60hQz4clQ4ykjCu4qyEhdKe11Lvy&index=6
Please share the video link
Please look into this video Click
Thank you. The video really helped. It has solved me problem