Function that will redirect the user to an OAuth authentication server to acquire a token that grants the client (semi-)permanent access to tranSMART.
a character string naming the domain of the OAuth server
a character string containing a prefetched token. If a request token has already been obtained, it can be entered here
If authentication was succesful, a security token is added to the transmartClientEnv environment (if this environment does not exist, it will be created), which will authorize this R client to access the tranSMART database through the available get methods (eg.
This function is automatically invoked when using
connectToTransmart, and then only when the current authentication is non-existent or no longer accepted. Using this function directly will always overwrite your current authentication without asking.
Tim Dorscheidt, Jan Kanis, Rianne Jansen. Contact: [email protected]
1 2 3 4 5 6 7 8
## Not run: # Set the function's argument to the location of your OAuth # and tranSMART servers, and follow the instructions localOAuthDomain <- "http://some.transmart.server/transmart" AuthenticateWithTransmart(localOAuthDomain) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.