From 8e079a167c6604974f234cc6fadb60073b1f4cf6 Mon Sep 17 00:00:00 2001 From: "Mr. Lance E Sloan (lsloan)" Date: Tue, 25 Jun 2024 13:43:38 -0400 Subject: [PATCH] #109 - keep old example; add cookie lang. example --- docs/oidc_initiation.rst | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/docs/oidc_initiation.rst b/docs/oidc_initiation.rst index 839b0db..e158a8f 100644 --- a/docs/oidc_initiation.rst +++ b/docs/oidc_initiation.rst @@ -16,8 +16,30 @@ to return an authentication request to the platform .. code-block:: python - ... + # ... + from lti_tool.views import OIDCLoginInitView + + urlpatterns = [ + path("init/` property, and is +used to identify the platform registration associated with the initiation request. + +Customizing language for blocked cookies +---------------------------------------- + +When the user's browser prevents embedded content from setting cookies within an +``iframe``, the module displays a message about it and a link to open the +content in a new tab or window. The language of the message and link may be +customized using optional message arguments to ``OIDCLoginInitView.as_view()``… + +.. code-block:: python + + # ... from lti_tool.views import OIDCLoginInitView urlpatterns = [ @@ -32,10 +54,6 @@ to return an authentication request to the platform # ... ] -The ``registration_uuid`` parameter is a reference to the -:attr:`LtiRegistration.uuid ` property, and is -used to identify the platform registration associated with the initiation request. - The ``main_msg``, ``click_msg``, and ``loading_msg`` **optional** arguments are passed to ``DjangoOIDCLogin.enable_check_cookies()`` to generate messages shown in the UI. The values shown here are the default values used by