Class ::canvas::API |
|
Basic Canvas API for OAuth calls. |
Class ::ms::Authorize |
|
Support for the Microsoft Microsoft identity platform ID
tokens to login/logout via MS Azure accounts. |
Class ::ms::Graph |
|
The "tenant" identifies an organization within azure. |
Class ::xo::Authorize |
|
Base class to support OAuth authorization API |
Class ::xo::REST |
|
The client_id/client_secret identifies the registered "app"
for which later app-tokens are used to issue action via the
REST interface. |
Class ::xo::lti::LTI |
|
Common Parameter |
Class ::xo::oauth::GitHub |
|
Tailored OAuth handler for GitHub |
canvas::API instproc paginated_result_list |
|
By default, Canvas returns for a query just the first 10
results ("pagination"). |
canvas::API instproc params |
|
parameter encoding following the parameter conventions
in Canvas |
canvas::API instproc parse_link_params |
|
|
canvas::API instproc parse_link_value |
|
Parse the provided link. |
canvas::API instproc request |
|
|
canvas::API instproc token |
|
Get bearer token (access token) from the /oauth2/v2.0/token endpoint. |
canvas::API instproc {account admins} |
|
Get a paginated list of the admins in the account. |
canvas::API instproc {account courses} |
|
Retrieve a paginated list of courses in this account. |
canvas::API instproc {account get} |
|
Retrieve information on an individual account, given by
id or sis sis_account_id. |
canvas::API instproc {account list} |
|
A paginated list of accounts that the current user can
view or manage. |
canvas::API instproc {account permissions} |
|
Returns permission information for the calling user and
the given account. |
canvas::API instproc {account settings} |
|
Returns all of the settings for the specified account as
a JSON object. |
canvas::API instproc {course activities} |
|
Returns the paginated Returns the current user's
course-specific activity stream, paginated. |
canvas::API instproc {course todo} |
|
Returns a paginated list of the current user's
course-specific todo items. |
canvas::API instproc {course users} |
|
Returns the paginated list of users in this course. |
ms::Authorize instproc get_user_data |
|
Get data via the provided token (which comes from the
"id_token"). |
ms::Authorize instproc login_url |
|
Returns the URL for logging in
"oauth2/authorize" is defined in RFC 6749, but requests
for MS id-tokens inversion v1.0 and v2.0 are defined
here:
https://learn.microsoft.com/en-us/azure/active-directory/develop/id-tokens |
ms::Authorize instproc logout |
|
Perform logout operation form MS in the background
(i.e. |
ms::Authorize instproc logout_url |
|
Returns the URL for logging out. |
ms::Graph instproc async_operation_status |
|
set context "[:uplevel {current methodpath}] [:uplevel {current args}]" |
ms::Graph instproc check_async_operation |
|
For async operations, the MSGraph API returns the
location to be checked for finishing via the "location"
reply header field. |
ms::Graph instproc encode_query |
|
|
ms::Graph instproc paginated_result_list |
|
By default, MSGraph returns for a query just the first 100
results ("pagination"). |
ms::Graph instproc params |
|
Support for OData query parameters: Encode vars as query
variables in case these are not empty. |
ms::Graph instproc request |
|
|
ms::Graph instproc run_donecallback |
|
Method to be finally executes the donecallback. |
ms::Graph instproc schedule_donecallback |
|
Add an atjob for the for the done callback. |
ms::Graph instproc token |
|
Get bearer token (access token) from the /oauth2/v2.0/token endpoint,
with timestamp validation (based on "expires_in") result. |
ms::Graph instproc {application get} |
|
Get the properties and relationships of an application object. |
ms::Graph instproc {application list} |
|
Get the list of applications in this organization. |
ms::Graph instproc {chat get} |
|
Retrieve the properties and relationships of user object. |
ms::Graph instproc {chat messages} |
|
Retrieve the properties and relationships of user object. |
ms::Graph instproc {group deleted} |
|
List deleted groups. |
ms::Graph instproc {group get} |
|
Get the properties and relationships of a group object. |
ms::Graph instproc {group list} |
|
To get a list of all groups in the organization that
have teams, filter by the resourceProvisioningOptions
property that contains "Team" (needs beta API):
resourceProvisioningOptions/Any(x:x eq 'Team')
Otherwise, one has to get the full list and filter manually. |
ms::Graph instproc {group member add} |
|
Add a conversationMember to a group. |
ms::Graph instproc {group member list} |
|
Get a list of the group's direct members. |
ms::Graph instproc {group member remove} |
|
Remove group member
Details: https://docs.microsoft.com/en-us/graph/api/group-delete-members |
ms::Graph instproc {group memberof} |
|
Get groups that the group is a direct member of. |
ms::Graph instproc {group owner add} |
|
add an owner to a group. |
ms::Graph instproc {group owner list} |
|
Retrieve a list of the group's owners. |
ms::Graph instproc {group owner remove} |
|
Remove group owner
Details: https://docs.microsoft.com/en-us/graph/api/group-delete-owners |
ms::Graph instproc {team archive} |
|
Archive the specified team. |
ms::Graph instproc {team channel list} |
|
Retrieve the list of channels in this team. |
ms::Graph instproc {team clone} |
|
Create a copy of a team specified by "team_id". |
ms::Graph instproc {team create} |
|
Create a new team. |
ms::Graph instproc {team delete} |
|
Delete group/team. |
ms::Graph instproc {team get} |
|
Retrieve the properties and relationships of the
specified team. |
ms::Graph instproc {team member add} |
|
Add a conversationMember to the collection of a team. |
ms::Graph instproc {team member list} |
|
Get the conversationMember collection of a team. |
ms::Graph instproc {team member remove} |
|
Remove a conversationMember from a team. |
ms::Graph instproc {team unarchive} |
|
Restore an archived team. |
ms::Graph instproc {user get} |
|
Retrieve the properties and relationships of user object. |
ms::Graph instproc {user list} |
|
Retrieve the properties and relationships of user
object. |
ms::Graph instproc {user memberof} |
|
Get groups, directory roles, and administrative units that
the user is a direct member of. |
ms::Graph instproc {user me} |
|
Retrieve the properties and relationships of the current
user identified by the token. |
ms::Graph proc run_donecallback |
|
Helper method for running callbacks. |
xo::Authorize instproc decoded_state |
|
|
xo::Authorize instproc encoded_state |
|
|
xo::Authorize instproc get_required_fields |
|
Check, if required fields are provided in the claims and
perform the name mapping between what was provided from
the identity provided and what we need in OpenACS. |
xo::Authorize instproc login_url |
|
Returns the URL for log-in |
xo::Authorize instproc logout |
|
Perform logout operation from oauth in the background
(i.e. |
xo::Authorize instproc lookup_user_id |
|
|
xo::Authorize instproc name |
|
|
xo::Authorize instproc perform_login |
|
Get the provided claims from the identity provider and
perform an OpenACS login, when the user exists. |
xo::Authorize instproc qualified |
|
|
xo::Authorize instproc record_oauth_registration |
|
Record the fact that this user_id was created via an
OAuth identity provider. |
xo::Authorize instproc redeem_code |
|
|
xo::Authorize instproc register_new_user |
|
Register the user and return the user_id. |
xo::Authorize instproc required_fields |
|
|
xo::REST instproc body |
|
Build a body based on the provided variable names. |
xo::REST instproc expect_status_code |
|
|
xo::REST instproc init |
|
Make sure, we have the nsv array for application tokens
defined. |
xo::REST instproc json_to_dict |
|
Convert JSON to a Tcl dict and add it to the result
dict. |
xo::REST instproc pp |
|
Simple pretty-print function which is based on the
conventions of the dict structures as returned from
Microsoft Graph API. |
xo::REST instproc request |
|
|
xo::REST instproc typed_list_to_json |
|
Convert a list of triples (name, type, value) into json/bson
notation. |
xo::REST instproc typed_value_to_json |
|
|
xo::REST instproc with_json_result |
|
|
xo::lti::LTI instproc form_render |
|
Set per-call parameters |
xo::lti::LTI instproc get_context |
|
|
xo::lti::LTI instproc get_params_from_section |
|
Try to get every parameter from the specified config section |
xo::lti::LTI instproc init |
|
Parameter precedence:
1) configure parameters when lti handler is created
2) configure file section /lti/$provider
3) from configure file section /lti
Iterate over class hierarchy until xo::lti::LTI is
reached and set parameters. |
xo::oauth::GitHub instproc get_api_data |
|
|
xo::oauth::GitHub instproc get_user_data |
|
Get user data based on the temporary code (passed via
"-token") provided by GitHub. |
xo::oauth::GitHub instproc logout_url |
|
Returns the URL for logging out. |
xo::oauth::nonce |
|
|
xo::oauth::timestamp |
|
|