Learn R Programming

synapseClient (version 1.14-0)

synapseLogin: Authentication

Description

Functions for handling Synapse authentication.

Usage

synapseLogin(username, password, rememberMe=F) synapseLogin(username = ..., apiKey = ..., rememberMe=F) synapseLogin(sessionToken = ..., rememberMe=F) synapseLogin(username = ..., rememberMe=F) synapseLogin() synapseLogout(localOnly=FALSE) invalidateAPIKey()

Arguments

username
Synapse username, usually an email
password
Password associated with the username
apiKey
Can be found online by logging in and going to the Settings tab of your profile page at www.synapse.org
sessionToken
Usage not recommended
rememberMe
Boolean indicated whether login should store session information on the local machine. Defaults to FALSE
localOnly
Boolean controlling whether logout is done locally only, or propagated to Synapse

Details

If insufficient arguments are provided to login, either cached or configuration information may be used to supplement. The configuration file is by default located in ``~/.synapseConfig''.

If logout is propagated to Synapse (ie. localOnly = FALSE), it is likely that the user will be logged out for all web clients currently in use. To logout globally across all analytical clients, use invalidateAPIKey().

See Also

Config

Examples

Run this code
## Not run: 
#   # Logging into Synapse with the rememberMe flag
#   synapseLogin(username, password, rememberMe=TRUE)
#   
#   # ... Do things ...
#   # Restart the session ...
#   
#   # Login with remembered credentials
#   synapseLogin()
# ## End(Not run)

Run the code above in your browser using DataLab