Newer Version Available

This content describes an older version of this product. View Latest

Authentication

When you create a Canvas app, you can use the signed request authentication method or the OAuth 2.0 authentication method.

If your Canvas app URL contains a URL fragment identifier (#), then the hash mark (#) and all characters that follow are stripped from the URL during the authentication flow. To prevent unexpected behavior, avoid using hash marks (#) in a Canvas app URL.

Important

  • Signed request—The default method of authentication for Canvas apps. The signed request containing the consumer key, access token, and other contextual information is provided to the Canvas app in one of these ways.
    • The administrator allows access to the Canvas app for the user.
    • The user approves the Canvas app in the OAuth flow.
  • OAuth 2.0—Canvas apps can use the OAuth 2.0 protocol to authorize and acquire access tokens. For more information about OAuth and the Lightning Platform, see Authorize Apps with OAuth.