::webauthn::WebAuthn ::webauthn::WebAuthn assert_clientdata_json assert_rpidhash auth assertion_verify auth issue_options init login_url logout lookup_user_id name new_challenge origin reg attestation_verify return_err state_key store ::xo::REST ::xo::REST body expect_status_code init json_to_dict pp request typed_list_to_json typed_value_to_json with_json_result ::webauthn::WebAuthn->::xo::REST ::ms::Graph ::ms::Graph → run_donecallback application get application list async_operation_status chat get chat messages check_async_operation encode_query group deleted group get group list group member add group member list group member remove group memberof group owner add group owner list group owner remove paginated_result_list params request run_donecallback schedule_donecallback team archive team channel list team clone team create team delete team get team member add team member list team member remove team unarchive token user get user list user me user memberof ::ms::Graph->::xo::REST ::canvas::API ::canvas::API account admins account courses account get account list account permissions account settings course activities course todo course users paginated_result_list params parse_link_params parse_link_value request token ::canvas::API->::xo::REST ::xo::Authorize ::xo::Authorize decoded_state encoded_state get_required_fields login_url logout lookup_user_id name perform_login qualified record_oauth_registration redeem_code register_new_user required_fields ::xo::Authorize->::xo::REST ::ms::Authorize ::ms::Authorize get_user_data login_url logout logout_url ::ms::Authorize->::xo::Authorize ::xo::oauth::GitHub ::xo::oauth::GitHub get_api_data get_user_data logout_url ::xo::oauth::GitHub->::xo::Authorize

Class ::xo::Authorize

::xo::Authorize[i] create ... \
           [ -after_successful_login_url (default "/pvt/") ] \
           [ -base_url base_url ] \
           [ -client_id client_id ] \
           [ -client_secret client_secret ] \
           [ -create_not_registered_users:boolean (default "false") ] \
           [ -create_with_dotlrn_role (default "") ] \
           [ -debug:boolean (default "false") ] \
           [ -login_failure_url (default "/") ] \
           [ -pretty_name pretty_name ] \
           [ -responder_url responder_url ] \
           [ -scope scope ]

Base class to support OAuth authorization API
Defined in packages/xooauth/tcl/authorize-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::xo::REST[i]
  • subclass: ::ms::Authorize[i], ::xo::oauth::GitHub[i]

Methods (to be applied on instances)

  • login_url (scripted, public)

     <instance of xo::Authorize[i]> login_url [ -return_url return_url ] \
        [ -login login ]

    Returns the URL for log-in

    Switches:
    -return_url (optional)
    -login (optional)

    Testcases:
    No testcase defined.
  • logout (scripted, public)

     <instance of xo::Authorize[i]> logout

    Perform logout operation from oauth in the background (i.e. without a redirect) when the logout_url is nonempty.

    Testcases:
    No testcase defined.
  • name (scripted, public)

     <instance of xo::Authorize[i]> name
    Returns:
    instance name

    Testcases:
    No testcase defined.
  • perform_login (scripted, public)

     <instance of xo::Authorize[i]> perform_login [ -token token ] \
        [ -state state ]

    Get the provided claims from the identity provider and perform an OpenACS login, when the user exists. In case the user does not exist, create it optionally (when "create_not_registered_users" is activated. When the user is created, and dotlrn is installed, the new user might be added optionally as a dotlrn user with the role as specified in "create_with_dotlrn_role".

    Switches:
    -token (optional)
    -state (optional)

    Testcases:
    No testcase defined.