View source: R/softeners__options.R
| error_on_softened | R Documentation |
Deprecated helper that errors when a small subset of shinyOAuth's development and debugging softeners are enabled. Use explicit startup checks for the exact options your deployment permits or forbids instead.
error_on_softened()
It only checks the following options:
shinyOAuth.skip_browser_token: Skips browser cookie presence check
shinyOAuth.skip_id_sig: Skips ID token signature verification
shinyOAuth.expose_error_body: Exposes HTTP response bodies
shinyOAuth.allow_unsigned_userinfo_jwt: Accepts unsigned (alg=none) UserInfo JWTs
shinyOAuth.allow_redirect: Allows sensitive HTTP flows to follow redirects
Invisible TRUE if none of those options are enabled; otherwise an
error is thrown.
# Note: error_on_softened() is deprecated because it only checks a narrow subset
# of shinyOAuth's security-relaxing options
# Throw an error if any softening options that relax default safety
# protections are enabled
# Below call does not error if run with default options:
error_on_softened()
# Below call would error (is therefore not run):
if (interactive()) {
options(shinyOAuth.skip_id_sig = TRUE)
error_on_softened()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.