Description Details Public fields Active bindings Methods
R6 Class representing the Singularity SDK
R6 Class representing the Singularity SDK
Allows configuration of the interactions between this client and the Singularity Oauth 2.0 server
the custom message handler created to allow redirection from shiny
the
client id generated by the singularity server that represents this client
client_secret
the client secret generated by the singularity server to allow this client to access the API
client_key
the client key generated by the singularity server to allow this client to access the API
message_handler
the name of the message handler to create for shiny js code
the
client id generated by the singularity server that represents this client
client_secret
the client secret generated by the singularity server to allow this client to access the API
client_key
the client key generated by the singularity server to allow this client to access the API
message_handler
the name of the message handler to create for shiny js code
new()
Creates a new instance of the SDK
Singularity$new( client_id, client_secret, client_key, config_file = ".local.config.json", config = NULL )
client_id
the client identifier as generated by Singularity
client_secret
the client secret as generated by Singularity
client_key
the client key as generated by Singularity
config_file
optional configuration file to override the default configuration from
config
optional config list to override the default configuration with
print()
Prints a representation of this object
Singularity$print(...)
...
print parameters
shiny_tags()
Adds a script tag with the redirection handler This is specifically for shiny
Singularity$shiny_tags(tags)
tags
the shiny tags object
shiny_redirect()
Calls the shiny redirect handler This is specifically for shiny
Singularity$shiny_redirect(session, redirect_uri)
session
the session object from shiny
redirect_uri
the uri to redirect the user to in order to force the trusted login flow
clone()
The objects of this class are cloneable with this method.
Singularity$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.