register_client.Rd
Create a new client for API call
viya_connection object, obtained through session
function
name of the new client to be created
client secret of the new client
The scopes allowed for the client to obtain on behalf of users, when using any grant type other than "client_credentials". Groups are treated as scopes. Therefore, the scopes that can be obtained by the client on behalf of a user will be the intersection of the user's groups and the scopes registered to the client via this property. Use the wildcard "" to match all groups. Since SAS Viya allows authorization rules to explicitly deny access to specific groups, SAS recommends always using "". The wildcard "*" will not match internal UAA scopes. This list should always include the scope "openid", which is used to assert the identity of the user that the client is acting on behalf of. For clients that only use the grant type "client_credentials" and therefore do not act on behalf of users, use the default scope "uaa.none".
The time in seconds to access token expiration after it is issued.
The list of grant types that can be used to obtain a token with this client. Types can include authorization_code, password, implicit, and client_credentials.
The scopes that the client is able to grant itself when using the "client_credentials" grant type. Wildcards are not allowed.
list
of parameters and lists to be added to the client creation payload
additional parameters to be passed to httr::POST
such as httr::add_headers
A sasClient
object list
if (FALSE) { # \dontrun{
new_client <- register_client(sess, 'my_client', 'my_s3cr3t!')
new_client
} # }