This just provides some helper methods for both token classes to use
This will create a randomly generated 20-character token for use as a request or access token. The string is hexadecimal.
This does not check for uniqueness.
This does some checks and provides some defaults.
It tries a number of times to create a unique token using generate_token. If that fails, this method will DIE.
token
generate_token
It will also create a secret using generate_token.
Finally, it will create a default valid_until of 1 hour from now.
valid_until
To install Jifty::Plugin::OAuth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty::Plugin::OAuth
CPAN shell
perl -MCPAN -e shell install Jifty::Plugin::OAuth
For more information on module installation, please visit the detailed CPAN module installation guide.