This directory contains one OAuth 2.0 example that was converted from PHP to LSP. It is based on the original sample published here: sample-oauth2-client/github.php.
sample-oauth2-client/github.lsp- The LSP version of the GitHub OAuth 2.0 client example.
Start the example with the Mako Server:
cd oauth
mako -l::sample-oauth2-clientFor more detail on starting the Mako Server, see the command line video tutorial and the command line options documentation.
After the server starts, open the HTTP URL printed in the Mako console. The OAuth flow will only complete after the GitHub OAuth application, callback URL, and client credentials have been configured.
The example follows the same overall flow as the original PHP sample: it redirects the browser to GitHub for authorization, receives the callback, exchanges the authorization data for access data, and then uses that data in the application flow.
- Review the original tutorial for the required OAuth application configuration.
- OAuth examples typically require correct callback URLs and client credentials before the flow will succeed.