I am a beginner in Angular JS and Salesforce.
I am building a hybrid application.
I am using the USER AGENT authentication flow
I used the following url :
https://login.salesforce.com/services/oauth2/authorize?response_type=token&client_id=consumer_key&redirect_uri=https://localhost:63342/www/index.html#/
I got the result as expected with the access token but did not get the refresh token.
Then i found this
The refresh token is only returned if the redirect URI is https://login.salesforce.com/services/oauth2/success or used with a custom protocol that is not HTTPS.
So I changed the redirect_uri in my url as :
https://login.salesforce.com/services/oauth2/authorize?response_type=token&client_id=3MVG9ZL0ppGP5UrCf3JELrQofxTN1p28Y0qBjNy67uUtwoVl8i0LX6ntfchfUlDJoeso1xKRxGHx_Tzk_SAiK&redirect_uri=https://login.salesforce.com/services/oauth2/success
I got the refresh token.
But then the page is stuck up at the below link
How do i make it redirect back to my app link
https://localhost:63342/www/index.html#/
Thanks in advance.