Authentication.getToken {SciServer}R Documentation

Get user token.

Description

Returns the SciServer authentication token of the user. First, will try to return the variable Authentication.token. If it is not set, Authentication.getToken will try to return the "sciservertoken" environmental variable. If this variable does not exist, will try to return the token stored in Config.KeystoneTokenFilePath. Will return a NULL if all previous steps fail.

Usage

Authentication.getToken()

Value

Returns SciServer's authentication token (string).

Author(s)

Gerard Lemson, Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://portal.sciserver.org/login-portal/
http://www.github.com/sciserver/SciScript-R

See Also

Authentication.getKeystoneUserWithToken, Authentication.login, Authentication.setToken, Authentication.token.

Examples

## Not run: token = Authentication.getToken()

[Package SciServer version 2.0.0 Index]