Top Navigation menu under construction from 9:30am to 4:30pm MDT. For more information or tips for finding Community content, click here.

Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create new Login resource for users.

I am trying to create a new Login resource for users to tie into our existing SAML authentication. I have tried to create a new entry using the API posted here: Logins - Canvas LMS REST API Documentation  

I keep getting a 404 error. My account has admin rights for the tenant and other API calls have been working. (e.g. GET /api/v1/accounts/102890/logins worked to retrieve the Logins associated with the user's token)

Below is the POST request header and body with some of the details redacted.

POST /api/v1/accounts/102890/logins HTTP/1.1
Content-Type: multipart/form-data
Authorization: Bearer <token>
User-Agent: PostmanRuntime/7.19.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 15163590-b4f9-4664-aa62-049258037e8c,3172a291-13a8-44dc-b016-af1c528efb1b
Accept-Encoding: gzip, deflate
Content-Length: 99
Cookie: log_session_id=xxxxxxx; canvas_session=xxxxxxxxx; _csrf_token=xxxxxxxx
Connection: keep-alive
cache-control: no-cache

Tags (3)
0 Kudos
1 Reply
Not applicable

Seems to be related to trying to set the authentication_provider_id. I was able to create a new login when I removed that parameter.