Authentication.login {SciServer} | R Documentation |
Logs the user into SciServer and returns the authentication token. This function is useful when SciScript-R library methods are executed outside the SciServer-Compute environment. In this case, the session authentication token does not exist (and therefore can't be automatically recognized), so the user has to use Authentication.login
in order to log into SciServer manually and get the authentication token. Authentication.login
also sets the token value in the Sys environment variable "sciservertoken" and as the variable Authentication.token
.
Authentication.login(UserName, Password)
UserName |
name of the user. |
Password |
password of the user. |
Returns the authentication token (string). Throws an exception if the HTTP request to the Authentication URL returns an error.
Gerard Lemson, Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://portal.sciserver.org/login-portal/
http://www.github.com/sciserver/SciScript-R
Authentication.getKeystoneUserWithToken
, Authentication.getToken
, Authentication.setToken
, Authentication.token
.
## Not run: Authentication.login("MyName","MyPassword")