feat(auth): Add authorize page

This commit is contained in:
Björn Benouarets
2026-01-21 06:40:53 +01:00
parent 74232ad2d2
commit 9e7841ee35
8 changed files with 90 additions and 38 deletions

View File

@@ -81,8 +81,8 @@ Error: Cookies can only be modified in a Server Action or Route Handler.
Create a `.env.local` file in the root directory:
```bash
SECNEX_API_HOST=http://localhost:3001
SECNEX_API_KEY=your_api_key_here
SECNEX_AUTH_API_HOST=http://localhost:3001
SECNEX_AUTH_API_KEY=your_api_key_here
```
### Installation
@@ -243,7 +243,7 @@ The `permissions.json` file defines OAuth scope permissions:
- Server Actions use `"use server"` directive
- Route Handlers allow cookie modification from Server Components
- Cookies are HTTP-only for additional security
- The SecNex API must be running at the configured `SECNEX_API_HOST`
- The SecNex API must be running at the configured `SECNEX_AUTH_API_HOST`
- API credentials should be stored in environment variables (not hardcoded)
## Tech Stack
@@ -273,8 +273,8 @@ For more information, see the [Next.js Deployment Documentation](https://nextjs.
Make sure to set the following environment variables in your deployment:
- `SECNEX_API_HOST` - Your SecNex API host URL
- `SECNEX_API_KEY` - Your SecNex API key
- `SECNEX_AUTH_API_HOST` - Your SecNex API host URL
- `SECNEX_AUTH_API_KEY` - Your SecNex API key
## License