feat(auth): Add OAuth2 authentication

This commit is contained in:
Björn Benouarets
2026-01-27 16:35:46 +01:00
commit 50c85e9b7f
36 changed files with 1599 additions and 0 deletions

47
README.md Normal file
View File

@@ -0,0 +1,47 @@
# SecNex CLI
The SecNex CLI is a command line tool for the SecNex API. It allows you to manage your SecNex API resources from the command line.
## Features
- [x] Login via OAuth2 and secure saving of the access token with keyring
## Installation
```bash
pip install secnex-cli
```
## Usage
```bash
secnex auth login
```
## Commands
### auth
#### login
Login to the SecNex API
```bash
secnex auth login
```
#### logout
Logout from the SecNex API
```bash
secnex auth logout
```
#### status
Check if user is already logged in
```bash
secnex auth status
```