Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Hello,
I'm currently testing some aspects of how an LTI (not our own tool) in our Canvas environment is performing using selenium in python. For this I would like to authenticate to Canvas using a user generated access token as described on https://community.canvaslms.com/t5/Canvas-Basics-Guide/How-do-I-manage-API-access-tokens-in-my-user-...
If already read the post Server-to-Server OAuth2 in this group, but that post is already 9 years old and also it describes using shared keys and secrets form some LTI, but that is not an option for me as I am completely oblivious in LTI development.
Is there any chance that a user access token can be used to authenticate using python so tests can be performed headless on a server? Any suggestions are welcome, sample python code also!
I've only been able to get Selenium working with a username/password, but once authenticated the session is persistent. I would be very surprised if Selenium took an API token as an argument. Happy to share what I have if you're interested.
Hi @reynlds, thanks for your comment. I've considered to use Selenium to fill in the login fields, but we use SSO and an external authentication provider, but because we also use MFA that that is not a workable process. Does your solution not require MFA? If so, I'm interested in how you solved it. Thanks.
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In