An open API service indexing awesome lists of open source software.

https://github.com/rmorlok/authproxy

Authenticating proxy server for connecting to 3rd party APIs
https://github.com/rmorlok/authproxy

Last synced: 11 months ago
JSON representation

Authenticating proxy server for connecting to 3rd party APIs

Awesome Lists containing this project

README

          

# AuthProxy

## Running Locally

Create a network for the asynq system to interact with redis:

```bash
docker network create authproxy
```

Start redis:

```bash
docker run --name redis-server -p 6379:6379 --network authproxy -d redis
```

Start the AuthProxy backend

```bash
go run ./cli/server serve --config=./dev_config/default.yaml all
```

Run the client to proxy authenticated calls to the backend:

```bash
go run ./cli/client raw-proxy --enableMarketplaceLoginRedirect=true --proxyTo=api
```

Run the marketplace UI:

```bash
cd marketplace_portal
nvm use v18.16.0
yarn
yarn dev
```

### Viewing Background Tasks
To manage tasks in asynq, install the [asynq cli](https://github.com/hibiken/asynq/blob/master/tools/asynq/README.md):

```bash
go install github.com/hibiken/asynq/tools/asynq@latest
```

and run the cli:

```bash
asynq dash
````

run the web monitoring tool:

```bash
docker run --rm \
--name asynqmon \
--network authproxy \
-p 8090:8080 \
hibiken/asynqmon \
--redis-addr=redis-server:6379
```

open the web ui:

```bash
open http://localhost:8090
```
## Client Config

The client cli looks for a config file at `~/.authproxy.yaml`:

```yaml
admin_username: bobdole
admin_private_key_path: /path/to/private/key
server:
api: http://localhost:8081
```