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
theclient id generated by the singularity server that represents this client
client_secretthe client secret generated by the singularity server to allow this client to access the API
client_keythe client key generated by the singularity server to allow this client to access the API
message_handlerthe name of the message handler to create for shiny js code
theclient id generated by the singularity server that represents this client
client_secretthe client secret generated by the singularity server to allow this client to access the API
client_keythe client key generated by the singularity server to allow this client to access the API
message_handlerthe 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_idthe client identifier as generated by Singularity
client_secretthe client secret as generated by Singularity
client_keythe client key as generated by Singularity
config_fileoptional configuration file to override the default configuration from
configoptional 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)
tagsthe shiny tags object
shiny_redirect()Calls the shiny redirect handler This is specifically for shiny
Singularity$shiny_redirect(session, redirect_uri)
sessionthe session object from shiny
redirect_urithe 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)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.