# GitHub

To allow users to sign up and log in using their GitHub accounts, set `ALLOW_GITHUB_LOGIN` to `True`. Additionally, you will need to configure your GitHub application by registering it with GitHub:

1. Visit [GitHub Applications](https://github.com/settings/applications/new) while logged into your GitHub account.
2. Fill in the required details. Make sure the **Authorization callback URL** is set to `https://YOUR_DOMAIN_HERE.COM/swd/accounts/github/login/callback/`.
3. Once your application is created, GitHub will provide you with a **Client ID** and **Client Secret**.
4. Update the `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` in your `CONFIG/authentication.py` config file with these values.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shipwithdjango.com/authentication/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
