instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.52k stars 2.45k forks source link

Login API with username & password #2041

Closed rahul-ecsion closed 2 years ago

rahul-ecsion commented 2 years ago

Summary:

Hi Canvas lms Team,

I am working customised canvas lms mobile application.

I searched on google and canvas API documentation, didn't found Login API with username and password. Wanted to use it for Initial login without using the Authentication Token.

Queries

  1. Can someone please help me with the Login API if its available?

  2. And if it's not available the please help me how we can create it for our customised canvas lms mobile application?

  3. After POST url using web view it is asking for login again in relaunch. How can we overcome this issue ?

Thank you in advance.

maths22 commented 2 years ago

The canvas API only supports token based authentication. If you are making a customized mobile application, you should be using the OAuth flow to generate tokens: https://canvas.instructure.com/doc/api/file.oauth.html#oauth2-flow