session.Rd
Creates a Viya session object to be used in other calls
session(
hostname,
username = NULL,
password = NULL,
client_id = NULL,
client_secret = NULL,
oauth_token = NULL,
authinfo = NULL,
auth_code = FALSE,
verbose = FALSE,
verify_ssl = TRUE,
cacert = NULL,
openBrowser = TRUE,
platform = TRUE
)
string, SAS Viya url
string, username for login
string, username password
string, client_id used for authentication, if left blank will use default
string, client_secret used for authentication, if left blank will use default
string, if Oauth token is provided, a viya_connection is created
A character
string that specifies an alternative path to a .authinfo
file that is used for authentication. By default, ~/.authinfo
is used on Linux and %HOMEDRIVE%
or \%HOMEPATH%\_authinfo
is used on Windows.
logical, if TRUE will open a browser with the user and request the authentication code to continue the authentication process. Viya 2022+ only.
logical, return print API call information
boolean, verify SSL (Use it with caution)
ca certificate list
boolean, if TRUE
the browser be opened automatically when auth_code = TRUE
logical, make a get call to get platform information (release, OS, siteName)
viya_connection
class object
Other authentication:
oauth_consul()
,
refresh_session()
if (FALSE) { # \dontrun{
sess <- session(hostname = "http://myserver.com",
username = "myuser",
password = "mysecret")
} # }