Sloxly Docs
OAuth Captcha Console

Getting Started with OAuth 2.0

Follow these steps to add "Continue with Sloxly" to your app.

1. Create a Project

Go to the Developer Console and create a new project. This groups your credentials together.

2. Generate OAuth Credentials

Navigate to OAuth Credentials in your project and click Generate. You'll receive:

The client_secret is only shown once. Copy and store it securely.

3. Set Redirect URIs

Add the URL(s) where users will be sent after authorization. For example:

Example
https://yoursite.com/callback.php
http://localhost/myapp/callback.php

4. Set JavaScript Origins (Optional)

If using OAuth from the browser, add your site's origin:

Example
https://yoursite.com
http://localhost

5. Build the Login Link

PHP
$loginUrl = "https://api.sloxly.com/v1/Oauth/authorization?" . http_build_query([
    'client_id'    => $client_id,
    'redirect_uri' => 'https://yoursite.com/callback.php',
]);

// Use in HTML:
// <a href="<?= $loginUrl ?>">Continue with Sloxly</a>
← PreviousOverview