Hi all,

I have a Token authentication tab under My account BUT I don't see my token under that tab!!
Where do I find the token that I should append to the RSS feed URL in my RSS reader to see my protected Drupal Content?
Any help would be appreciated.

Thanks
Thomas S

Comments

Grayside’s picture

Status: Active » Fixed

That's frustrating for both of us. :/

http://drupal.org/cvs?commit=415514

shadysamir’s picture

Status: Fixed » Active

The 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

Grayside’s picture

Status: Active » Closed (cannot reproduce)

Not sure what to tell you. Just grabbed a clean version of -dev and it worked.

Grayside’s picture

Status: Closed (cannot reproduce) » Fixed

Re-fixed. Somewhere in there I had a regression. It is now back, next release will have this working.

http://drupal.org/cvs?commit=426468

steel-track’s picture

Category: support » bug

I tried the dev version and the latest commits and I am still only seeing a reset button under the token authentication tab. Any ideas?

shadysamir’s picture

It worked for me finally. I disabled and uninstalled the module then installed the dev version.

cdrop’s picture

Issue tags: +token, +auth

Could 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.

<div id="embed"></div>
<script
src="http://example.com/embed/external-embed. js"></script> <script type="text/javascript"> embed.content({
id: 'embed', width: 800, height: 600, flashvars: {
auth_token: 'yourauthtoken'
}, callback: function() { }
});
</script>

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

Grayside’s picture

The 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.

cdrop’s picture

Thanks Grayside! That link shows me how to reset the token.

Do you have any idea how to print it?

Much appreciated.

-C

Grayside’s picture

A 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.

cdrop’s picture

Thanks 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:

<?php  print tokenauth_get_token($uid); ?>

Status: Fixed » Closed (fixed)
Issue tags: -token, -auth

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