Install
Arch Linux (AUR)
yay -S vygrant# orparu -S vygrantBuild from source
git clone https://github.com/vybraan/vygrant.gitcd vygrantgo build -ldflags "-s -w"Initialize Config
vygrant initDefault config path:
~/.config/vybr/vygrant.toml
Custom config path:
- set
VYGRANT_CONFIG=/path/to/vygrant.toml
Add an Account
Example account block:
https_listen = "8080"http_listen = "none"persist_tokens = truetoken_event_cmd = ""
[account.myapp]auth_uri = "https://provider.com/auth"token_uri = "https://provider.com/token"client_id = "YOUR_CLIENT_ID"client_secret = "YOUR_CLIENT_SECRET"redirect_uri = "https://localhost:8080"scopes = ["openid", "profile", "email"]Start Daemon
vygrant serverAuthenticate and Fetch Token
vygrant token refresh myappvygrant token get myappIf refresh token is missing, Vygrant prints an auth URL to open in browser.