Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using UAA to login with instagram #52

Open
gemins opened this issue Sep 5, 2017 · 4 comments
Open

Using UAA to login with instagram #52

gemins opened this issue Sep 5, 2017 · 4 comments

Comments

@gemins
Copy link

gemins commented Sep 5, 2017

I trying to connect with instagram using UAA, but the system not read the CODE received. Is some information to understand how work this method (UAA) or some example?.

var uaaInitOptions: tnsOAuthModule.ITnsOAuthOptionsUaa = {
authority: 'https://www.instagram.com',
redirectUri: 'https://www.facebook.com/connect/login_success.html',
clientId: 'xxxxxxxxxxxxxxx',
clientSecret: '',
scope: ['public_content', 'follower_list'],
cookieDomains: [".facebook.com"],
basicAuthHeader: "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
};
tnsOAuthModule.initUaa(uaaInitOptions);

I used this config to get the information and use the facebook's callback because it is more easy, but i can use my API to show some code, but the app pass the login (instagram) stage and was freezing in white page, not return to the app and nothing more is happen.

Thanks you.

@gemins
Copy link
Author

gemins commented Sep 5, 2017

I find the solution, but need change in the package.

Changing auth-helper-uaa.js file in line 24, the option "tokenEndpoint". if this option were editable can be the final solution to login with Instagram and may be with another social media too.

@stephan-fischer
Copy link

@gemins do you have a solution? What i have to change on the option "tokenEndpoint"?
Can i use localhost or etc, for the "redirectUri"?

Thank you!

@gemins
Copy link
Author

gemins commented Jul 17, 2018

Hello @stephan-fischer, i dont remember all, because is a old implementation. But, basically the changes was made on the original files (on node_modules folder). Change this var tokenEndpoint on the file auth-helper-uaa.js, with this method can change one directive need instagram to connect to the api. I hope this help you. If cant change, tell me again and try to see the old project. See you!

@stephan-fischer
Copy link

stephan-fischer commented Jul 18, 2018

hi @gemins oh it works now - with:
tokenEndpoint: '/oauth/access_token',

I use the facebook config as you, this is ok and good or? And another question:
basicAuthHeader: "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
is it needed to replace the xxx with something?

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants