This was broken for two reasons:

  1. Links used token key, but oauth_common_provider_token() expects tid
  2. Access function used non-existant permission: oauth authorize consumers

Attached is a patch which fixes both problems.

Comments

piraxter’s picture

Version: 6.x-3.0-beta4 » 6.x-2.02

Hello !
Yes, I have the same error.
I can't view/access to permissions drupal page. When access Google Chrome give me a error 500 page.

To edit permissions I need to disable Oauth. Yes I turn off Oauth and turn on to use Twitter module.

dsnopek’s picture

Version: 6.x-2.02 » 6.x-3.0-beta4

I don't think my patch works against 6.x-2.02, so I'm changing the version back to 6.x-3.0-beta4. You should probably make a seperate issue for the older version.

christianchristensen’s picture

I updated this patch a bit to include handling the two different situations: the token lookup with the tid or the key and the access check to fallback to the context if the token is provided. Ultimately these should probably only be one check, but the permissions check seems relevant as there are both options in the permissions UI.

christianchristensen’s picture

devkinetic’s picture

christianchristensen, your patch has resolved my trouble with this issues as well. Thanks for this and other patch you posted concerning the endpoint pages. Big help. I hope that both get committed.

h3rj4n’s picture

Version: 6.x-3.0-beta4 » 6.x-3.x-dev
Status: Needs review » Reviewed & tested by the community

The path in #3 seems te work fine! Set this to RTBC.

juampynr’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Made a little more clear.