synapseLogin: Authentication

Description Usage Arguments Details Author(s) See Also Examples

Description

Functions for handling Synapse authentication.

Usage

1
2
3
4
5
6
7
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().

Author(s)

Matt Furia, Joseph Wu

See Also

Config

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

Sage-Bionetworks/rSynapseClient documentation built on May 9, 2019, 7:04 p.m.