Learn R Programming

rPlant (version 1.2)

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"))
RenewToken(user.name, user.pwd, token, api=c("iplant", "cipres", "tnrs"))

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

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