pengwynn/linkedin — Issue #91: "permission_unknown" bug or failure to understand docs
Author: wulffeld
Created: 2011-12-08 19:31:31+00:00
State: open

I've struggled for countless hours now trying to figure out how to get the pin (oauth_verifier) into the mix without user interaction. I thought it was easy enough just getting the oauth_verifier from params but I keep getting permission_unkown in this line:

https://github.com/wulffeld/test-linkedin-devise-omniauth/blob/master/app/controllers/connections_controller.rb#L7

If someone could point me in the right direction I'd be grateful. I have created a minimal project that uses devise, omniauth-linkedin and obviously this gem here: https://github.com/wulffeld/test-linkedin-devise-omniauth

It's mongodb based so if you have mongodb running it should work more or less out of the box - just add a config.yml file in config with the key/secret:

```
development:
linkedin_key: MYKEY
linkedin_secret: MYSECRET
```

On the home page click 'Sign in' then 'Sign in with Linkedin' to auth with LinkedIn.

After that just hit the /connections url and the error should appear.

If i do the example (at https://github.com/pengwynn/linkedin) where I manually get the pin it works just fine.