-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support alternative cookie messages in UI (iss. #107) #109
support alternative cookie messages in UI (iss. #107) #109
Conversation
This could be used as… ```python path("init/<uuid:registration_uuid>/", OIDCLoginInitView.as_view( main_msg='Your browser prevents embedded content from using cookies.', click_msg='Instead, you must open the content in a new tab.', loading_msg='Loading…' ), name="init"), ```
@michaelwheeler and @jonespm: This is what I thought would be a simple implementation to support other messages, but requiring minimal changes to code that would use it. I've not yet checked the code with |
@lsloan Thanks for the PR! What would you think about providing initial values for the three new properties of Documenting this in https://github.com/academic-innovation/django-lti/blob/main/docs/oidc_initiation.rst would also be great. |
After running `nox`, `black` said a blank line was needed. After I looked, I decided a comment would be helpful, too.
Yes, I can provide defaults. I thought of that, but it wasn't necessary, so I just thought I'd wait and see what others had to say. I'm happy to document as well. I'll mark this PR as ready for review, since we're starting to do that anyway. 😉 |
@michaelwheeler, I've committed changes with better default messages and documentation. Tell me if you see anything else that needs to be added or formatting improved. I think I've handled the things |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lsloan! Just a few items to address before we can get this merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lsloan I think we're all set here. Really appreciate the contribution!
@michaelwheeler, will you merge this soon or are you waiting for a specific time? |
Sorry @lsloan! Was waiting for the checks to pass and got distracted with other things! |
@michaelwheeler, no problem. Please tell me whenever a pip-installable release is available. @tl-its-umich-edu will be happy to see the changes in a current project. Thanks! |
Resolves #107.
I noticed that
OIDCLoginInitView
's inherited methodView.as_view()
, being called from an @tl-its-umich-edu LTI project, accepted a list of various keyword arguments. I experimented with that and learned that by defining the arguments as attributes ofOIDCLoginInitView
, they would be accepted and could later be accessed as instance properties whereDjangoOIDCLogin.enable_check_cookies()
is called.This could be used as…