Welcome Guest, Not a member yet? Register   Sign In
Problem with returning querystring from Linkedin for Auth using Codeigniter 2.0.3
#1

[eluser]no1youknowz[/eluser]
Firstly, I am running CI 2.0.3. Using good ol' google, it wasn't difficult to find code to achieve my current problem. I have found these sources, but they have been written using 1.7.2:

Quote:http://www.sudhircodes.com/main/codeigni...-linkedin/
http://blog.justni.com/posting-to-linked...deigniter/

I am able to hit linkedin, put in my user credentials for authorising the application.

I get this back:
Quote:http://www.domain.com/auth/linkedin_auth...fier=97677

But the problem is if in the config: $config['uri_protocol'] = 'AUTO';

Then a 302 occurs and gets turned into http://www.domain.com/auth/linkedin_auth No oauth_token.

If you then have $config['uri_protocol'] = 'QUERY_STRING'; No 302 occurs, so the querystring is intact, instead I get "The URI you submitted has disallowed characters"

No problem, just change $config['permitted_uri_chars'] right? Wrong, I change it and even set it to blank and I just get an HTTP loop where it keeps on hitting /auth/linkedin_auth.

So has anyone managed to get CI 2.0.3 play nice with linkedin?

I've also seen these two:

http://stackoverflow.com/questions/21711...ery-string
http://stackoverflow.com/questions/33971...odeigniter

Still stuck..I'm slowly going bald! :p

Thanks for any help. I'm sure this is a simple matter, but as yet I am unable to get it to work!




Theme © iAndrew 2016 - Forum software by © MyBB