-
Notifications
You must be signed in to change notification settings - Fork 345
Request failed: unauthorized (401) #118
Comments
Hi - first make sure all your paths and variables are correct. Be sure you put the correct clientID and secret to the initialisation. These are NOT the OAUTH2 Tokens but the key and secret for your client as defined in your oauth2 backend! I suppose you do not have much experience with the oauth2 workflow. Please be sure to post a call first for getting an oauth2 token. Now it depends on which oauth2 flow you have implemented in your backend. There are multiple possibilites! For example I am using oauth2 bearer tokens. So first I use this method for initialization: |
Actually, i was impressed with
Still, this produces the result which |
well I suppose your request is not signed. hmm interesting - well i was using another version of oauth2 based on afnetworking too. I had to recode stuff when I switched to new version of afnetworking but for me the pain was to rewrite my calls (similar to yours) to new afoauth2manager. For me it is working fine. Here you have a complete GET call in objC that works on my backend - I changed the name of the endpoint. There must be sth wrong with your request signing or with the stuff you are sending to the endpoint.
|
Always, returns only
Request failed: unauthorized (401)
But, working with postman client plugin.What could be the problem? Am i setting wrong place for the CONSUMERKEY and CONSUMERSECRET
The text was updated successfully, but these errors were encountered: