auth_opal {rqti}R Documentation

Authentification in OPAL API

Description

Function auth_opal() performs the necessary authentication steps in OPAL API. If the authentication is successful, the function sets the token value in the system environment and returns the user's identity key in OPAL. The token value is required to access the OPAL API system.

Usage

auth_opal(api_user = NULL, api_password = NULL, endpoint = NULL)

Arguments

api_user

A character value of the username in the OPAL.

api_password

A character value of the password in the OPAL.

endpoint

A string of endpoint of LMS Opal; by default it is got from environment variable RQTI_API_ENDPOINT. To set a global environment variable, you need to call Sys.setenv(RQTI_API_ENDPOINT='xxxxxxxxxxxxxxx') or you can put these command into .Renviron.

Value

A character string with Opal user id

Authentication

To use OPAL API, you need to provide your OPAL-username and password. This package uses system credential store 'keyring' to store user's name and password. After the first successful access to the OPAL API, there is no need to specify the username and password again, they will be extracted from the system credential store

Examples


auth_opal()


[Package rqti version 0.3.0 Index]