feat(auth): Add OAuth2 authentication
This commit is contained in:
47
README.md
Normal file
47
README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user