AnsweredAssumed Answered

I cannot get a token.

Question asked by Gary Teng on Aug 13, 2019
Latest reply on Aug 13, 2019 by James Jones

I set up a new canvas server and use my old code which is workable to get a token.

 

However, I get following error.

{"error":"invalid_grant","error_description":"authorization_code not found"}

 

In the server-side, it shows

SQL DeveloperKey Load (1.4ms) SELECT "developer_keys"."id", "developer_keys"."api_key", "developer_keys"."email", "developer_keys"."user_name", "developer_keys"."account_id", "developer_keys"."created_at", "developer_keys"."updated_at", "developer_keys"."user_id", "developer_keys"."name", "developer_keys"."redirect_uri", "developer_keys"."icon_url", "developer_keys"."sns_arn", "developer_keys"."trusted", "developer_keys"."force_token_reuse", "developer_keys"."workflow_state", "developer_keys"."replace_tokens", "developer_keys"."auto_expire_tokens", "developer_keys"."redirect_uris", "developer_keys"."notes", "developer_keys"."access_token_count", "developer_keys"."vendor_code", "developer_keys"."visible", "developer_keys"."scopes", "developer_keys"."require_scopes", "developer_keys"."test_cluster_only", "developer_keys"."public_jwk", "developer_keys"."internal_service", "developer_keys"."oidc_initiation_url", "developer_keys"."public_jwk_url", "developer_keys"."is_lti_key" FROM "developer_keys" WHERE "developer_keys"."id" = 1 ORDER BY "developer_keys"."id" ASC LIMIT 1 [development:1 master]
Completed 400 Bad Request in 13ms (Views: 0.3ms | ActiveRecord: 1.4ms)

 

There is no 400 Bad Request when I login Postgres and execute the above SQL command.

 

Does anyone once have a similar problem?

Outcomes