Postman and CAS authentication - Has anyone been able to access a "backdoor" to do a direct...

Postman and CAS authentication - Has anyone been able to access a "backdoor" to do a direct login to D2L with an API user account?
Our Production and Test instances have CAS enabled on them. Any manually created accounts use a backdoor to log into the LE (instance.desire2learn.com/d2l/login?noRedirect=1) I am trying to request an OAuth 2.0 token for my API collection in Postman as outlined in this article but the token login page keeps directing to the CAS login not the 'backdoor'. Any thoughts?
Answers
-
Hi @Kristin Rivedal ,
You will need to first log into the manually created account in Postman. You should be able to do so by taking advantage of DevTools.
Steps:
- Follow steps 1-9 under [Archived Content] Creating a Postman Collection and connecting it to Brightspace
- Under View, hover over Developer, and click on Show DevTools (Current Shell)
- Navigate to the Console tab, and type in the following: window.location.href = "https://instance.desire2learn.com/d2l/login?noRedirect=1"
- Hit Enter, and close the Developer Tools window
- The window that appeared as a result of clicking Request Token should now be displaying the login page for your instance
- Log into your instance using the manually created account's credentials
- Close the window that appeared as a result of clicking Request Token
- Click on Request Token again
- Proceed with step 11-13 of [Archived Content] Creating a Postman Collection and connecting it to Brightspace
Here is a demo of the steps above:
Postman for Windows Version 7.3.4 win32 10.0.17134 / x64
Unfortunately, I do not have access to a system with CAS set up, but the steps should work regardless.
Please let me know if that resolves your issue or if you have any further questions.
Thanks,
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 28 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat