> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastapps.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> OAuth 2.1 authentication for FastApps widgets and tools with built-in JWT verification.

## Overview

Comming soon. \
You would be able to use this feature starting from Nov 10.

### Using Authentication in Widgets

Access user information in your widgets:

```python theme={null}
from fastapps import BaseWidget, auth_required, UserContext

@auth_required(scopes=["user"])
class ProtectedWidget(BaseWidget):
    identifier = "protected"
    title = "Protected Widget"
    input_schema = ProtectedInput
    
    async def execute(self, input_data, context, user: UserContext):
        # Access authenticated user
        return {
            "user_id": user.subject,
            "email": user.claims.get('email'),
            "scopes": user.scopes
        }
```

## Next Steps

Ready to add authentication to your widgets?

<CardGroup cols={2}>
  <Card title="Server Configuration" icon="server" href="/auth/server-configuration/index">
    Configure OAuth at the server level
  </Card>

  <Card title="Widget Decorators" icon="at" href="/auth/decorators/index">
    Protect specific widgets
  </Card>

  <Card title="OAuth Providers" icon="shield-halved" href="/auth/providers/index">
    Set up Auth0 or other providers
  </Card>

  <Card title="Examples" icon="code" href="/auth/examples/index">
    See real-world implementations
  </Card>
</CardGroup>

***

**Need help?** Check our [GitHub repository](https://github.com/DooiLabs/FastApps) or reach out to the community.
