AnsweredAssumed Answered

Failure when making API calls with SAML enabled

Question asked by Ryan Ryan on Nov 10, 2014
Sugar Version: 6.7.7 Professional

We have SAML enabled and working fine. I want to make REST API calls, but they always fail with nondescript error messages. From what I understand, we need to use OAuth for API calls, so an OAuth2 key has been created. But making the following calls results in the respective errors. Is programmatic API access possible/implemented when SAML is used? Thanks!

A POST request here:
https://{base_url}/rest/v10/oauth2/token?grant_type=password&client_id=[validClientId]&client_secret=[REDACTED]&username=[myUserName]&password=[REDACTED]&platform=base
fails with 401 status and body:
{"error": "need_login","error_message": "You need to be logged in to perform this action."}

A POST request here:
https://{base_url}/rest/v10/oauth2/token?grant_type=token&client_id=[validClientId]&client_secret=[REDACTED]&username=[myUserName]&password=[REDACTED]&platform=base
fails with 501 status and body:
{"error": "This OAuth2 library is not yet complete. This functionality is not implemented yet."}

Outcomes