oauth2local

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2019 License: LGPL-3.0 Imports: 1 Imported by: 0

README

Build Status

oauth2local

An oauth client providing authenticated tokens to local processes.

oauth2local is providing oauth2 authenticated tokens to local processes

Usage:
  oauth2local [command]

Available Commands:
  callback    Send callback url to sovereign
  help        Help about any command
  register    Register app as url handler for custom url
  serve       serve a local auth provider
  token       Gets access token from the local server instance

Flags:
      --config string   config file (default is $HOME/.oauth2local.yaml)
  -h, --help            help for oauth2local
      --verbose         log to console to console

Use "oauth2local [command] --help" for more information about a command.

How to setup

Running the command should register the application as a custom url handler for "loc-auth://"

oauth2local register

this may need administrative privileges on windows

To test if the registration is successfull, run this command and see if there is a response from the server

oaut2local serve && xdg-open loc-auth://callback?code=foo

Getting a token when the server is up and running

oaut2local token

Build from source

Dependencies
  • Go >=v1.11
  • Protoc >=v3.7
Generate GRPC server/client
protoc -I ipc/localauth/ ipc/localauth/locauth.proto --go_out=plugins=grpc:ipc/localauth
Build
go build -v .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ipc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL