Closed (fixed)
Project:
Token authentication
Version:
6.x-1.5
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 18:07 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent
Comments
Comment #1
Grayside commentedThat's frustrating for both of us. :/
http://drupal.org/cvs?commit=415514
Comment #2
shadysamir commentedThe commit did not fix this for me. Installed 1.5 and applied committed .module and tokenauth.pages.inc from cvs and there is no token under the tab. Only "Reset Token" button
Comment #3
Grayside commentedNot sure what to tell you. Just grabbed a clean version of -dev and it worked.
Comment #4
Grayside commentedRe-fixed. Somewhere in there I had a regression. It is now back, next release will have this working.
http://drupal.org/cvs?commit=426468
Comment #5
steel-track commentedI tried the dev version and the latest commits and I am still only seeing a reset button under the token authentication tab. Any ideas?
Comment #6
shadysamir commentedIt worked for me finally. I disabled and uninstalled the module then installed the dev version.
Comment #7
cdrop commentedCould someone tell me the generic link to the token tab?
I'm having a hard time, I feel like I've seen 10 different modules all talking about token auth.
Basically, I need to simply print a the user's token ID for this simple script I have to get it to pass login to their embedded player. This way users don't have to login twice, once in the site and an other time in the player.
After all this is said, they'd also like me to build a rest api but I guess that's a whole different issue.
Thank you for any help in advanced.
-Curtis
Comment #8
Grayside commentedThe token is at user/%uid/tokenauth. Assuming they haven't customized it from default.
There is a bug in the current tokenauth release that prevents the token from showing up. This will be fixed when I mark the next release, which will happen soon.
Comment #9
cdrop commentedThanks Grayside! That link shows me how to reset the token.
Do you have any idea how to print it?
Much appreciated.
-C
Comment #10
Grayside commentedA user's tokenauth token is not actually loaded into the user object. It should be handled as if it were a password where possible, and it's not needed on most user_load() calls.
You can use
tokenauth_get_token($uid)to grab the token for a given user, or if you are using the Token module, there is a [tokenauth-token] token that can be used where tokens are processed.Comment #11
cdrop commentedThanks Grayside, I'll give this a shot.
This module can be used for several different api's I interface with and this has found to be the easiest so far. I'll post my results for everyone. I'd even consider writing a blog post or small documentation for some of the sites I'm working with.
-C
update
This is the code to print out the token for a logged in user: