Earlier We were able to get Authorization Code using the End Point
specified in step 1 of Authorization Code Flow :
https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow.
Now it is not working.

So, We have retrieved Refresh Token using a sample code :
https://github.com/spotify/web-api-auth-examples.
in which,
they are getting Authorization Code first.
then getting Access Token and Refresh Token using that Authorization Code.
Note: Earlier, We were able to get the Authorization Code from the Redirect
URI. Now it directly gives the Access Token and the Refresh Token in the
redirect URI without giving Authorization Code.

By step 7 (Requesting access token from refresh token) of Authorization
Code Flow :
https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow,
I am getting Access Token using Refresh Token(hard coded into the code).

 But Authorization Code --> Access Token is the best way.

On Fri, Oct 10, 2014 at 5:22 PM, Roshan Wijesena <[email protected]> wrote:

> Hi Shakila,
>
> I can't understand how did u get a refresh token without having an 
> Authorization
> Code? Second if you can generate an access token using the refresh token
> why do you need an  Authorization Code?  I am sorry if  I am
> misunderstood your question :)
>
> Regards
> Roshan
>
> On Fri, Oct 10, 2014 at 4:22 PM, Shakila Sivagnanarajah <[email protected]>
> wrote:
>
>> I have tried to get Access Token to Spotify for developing ESB connector
>> using Authorization code flow. I am unable to get Authorization Code using
>> the given end point. Because of that I am using Refresh token to get Access
>> Token. Is there any way to get Authorization Code?
>> Please refer this:
>> https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow
>> <https://developer.spotify.com/web-api/authorization-guide/>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> [email protected]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94752126789*
> Email: [email protected]
> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
> lean.enterprise.middleware.
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to