Download the PHP package stephencoduor/oauth2-canvaslms without Composer
On this page you can find all versions of the php package stephencoduor/oauth2-canvaslms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stephencoduor/oauth2-canvaslms
More information about stephencoduor/oauth2-canvaslms
Files in stephencoduor/oauth2-canvaslms
Package oauth2-canvaslms
Short Description Canvas LMS OAuth 2.0 support for the PHP 7.4 and above
License MIT
Informations about the package oauth2-canvaslms
Canvas LMS Provider for OAuth 2.0 Client php 7.4 and above
This package provides Canvas LMS OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Install
Require the package as below
Use
Same as the League's OAuth client, using \stephencoduor\OAuth2\Client\Provider\CanvasLMS
as the provider. Note that you can (and really should) include a purpose
option parameter and you will need to include your canvasInstanceUrl
.
Per the Canvas OAUth docs:
For Canvas Cloud (hosted by Instructure), you can request a client ID and secret from http://instructure.github.io/ in the Dev Key Signup section.
For open source Canvas users, you can generate a client ID and secret in the Site Admin account of your Canvas install. There will be a "Developer Keys" tab on the left navigation sidebar.
A small example: