# Enable OAuth

> Switch on the OAuth token check of DS Server in the admin portal or with SetOAuthEnabled, what it protects, when to leave it off and how to test it with cURL.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** DS Server > Administration and Settings > Enable OAuth
- **Web URL:** https://docs.textcontrol.com/ds-server/administration/oauth/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/administration/oauth/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/administration/oauth/llms-full.txt

---

## On This Page

- [What the Switch Does](https://docs.textcontrol.com/ds-server/administration/oauth/#what-the-switch-does)
- [When to Leave OAuth Disabled](https://docs.textcontrol.com/ds-server/administration/oauth/#when-to-leave-oauth-disabled)
- [Enable OAuth in the Portal](https://docs.textcontrol.com/ds-server/administration/oauth/#enable-oauth-in-the-portal)
- [Check That OAuth Is Enabled](https://docs.textcontrol.com/ds-server/administration/oauth/#check-that-oauth-is-enabled)
- [Switch OAuth From Code](https://docs.textcontrol.com/ds-server/administration/oauth/#switch-oauth-from-code)
- [Next Steps](https://docs.textcontrol.com/ds-server/administration/oauth/#next-steps)

---

## Nearby

- **Previous:** [Creating Security Profiles](https://docs.textcontrol.com/ds-server/administration/security-profiles/llms.txt)
- **Next:** [OAuth Grant Types](https://docs.textcontrol.com/ds-server/administration/oauth-grant-types/llms.txt)
