Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AuthGate Examples

Usage examples for the AuthGate Go SDK.
Multi-language usage examples for AuthGate authentication (Go, Python, Bash).

## Prerequisites

Expand Down Expand Up @@ -36,6 +36,33 @@ curl -H "Authorization: Bearer <token>" http://localhost:8080/api/profile
curl -H "Authorization: Bearer <token>" http://localhost:8080/api/data
```

### Bash CLI — Device Code Authentication

Uses the Device Authorization Grant (RFC 8628) with only `curl` and `jq`. No SDK or runtime required.

```bash
cd bash-cli
bash main.sh
```

### Python CLI — Device Code Authentication

Uses the Device Authorization Grant with the AuthGate Python SDK. Tokens are stored in the OS keyring when available, with a fallback cache file at `~/.authgate-tokens.json`.

```bash
cd python-cli
uv run python main.py
```

### Python M2M — Service-to-Service Authentication

Uses the Client Credentials grant with the AuthGate Python SDK.

```bash
cd python-m2m
uv run python main.py
```

### M2M — Service-to-Service Authentication

Uses Client Credentials grant with auto-caching. No user interaction needed.
Expand Down
Loading
Loading