How to establish connection and make API calls to Brightspace (to create a user and enroll the us...

How to establish connection and make API calls to Brightspace (to create a user and enroll the user to a specific course) ?
I have a web application that handles user authentication. Once the user is logged in, his/her eligibility for a course is checked (internal logic). If user is eligible for a course, I would like to make API call to enroll this user to the course and generate a link that can be used by the user to start course learning (without entering his/her credentials because user is already authenticated).
I am trying to achieve this using C# or JavaScript. I tried valance authentication (with App ID and App Key), I am able to call WhoAmI() method, but I had to enter the credentials when Valance Authentication redirected me to login page.
I also tried to follow SSO documentation is Brightspace community site, but I am finding it hard to understand the process.
Could you direct me to the right solution, please? I would appreciate if you could share a sample in C# or JavaScript that uses SSO authentication.
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 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