Learn R Programming

rPlant (version 2.7)

GetToken: Authentication functions

Description

Authenticates users and provides tokens to be used in place of unencrypted passwords

Usage

GetToken(user.name, user.pwd, api=c("iplant", "cipres", "tnrs"), print.curl=FALSE)
RenewToken(user.name, user.pwd, token, api=c("iplant", "cipres", "tnrs"),
    print.curl=FALSE)

Arguments

user.name
iPlant Discovery Environment user name
user.pwd
iPlant Discovery Environment password
token
a validation tool used in place of unencrypted passwords
api
the API to interfaced with, currently only the iPlant API is supported
print.curl
Prints the Curl Statement that can be used in the terminal

Value

  • A token used in place of an unencrypted password.

Details

The authentication functions will issue and renew an iPlant token. Tokens expire after 2 hours unless renewed.

Examples

Run this code
#token<-GetToken("User", "SecretPassword", api="iplant")
	#RenewToken("User", "SecretPassword", token, api="iplant")

Run the code above in your browser using DataLab