oakauth

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 0 Imported by: 0

README

obsez/auth - OakAuth

WIP

Overview

A cmdr demo app. obsez/auth implements a http2 server with full daemon supports and graceful shutdown.

xt.sh Usages

./xt.sh login
./xt.sh token
./xt.sh logout

./xt.sh secure

./xt.sh json /users
./xt.sh json /users/103


Others

# clone and init
git clone https://22os.com/obsez/auth.git
cd cmdr-http2
go mod download

# run server
go run ./cli/ server run &

# run client and make an request
go run ./cli/ h2

# or via curl
curl -k https://localhost:5151/

#
# Build the binary
#
go build -o bin/cli ./cli/
# or:
make build

# Shell prompt mode
$ go run ./cli/ shell
>>> --help
>>> quit
# type <space> to get auto-completion tip
# type sub-commands
OakAuth shell prompt mode:

image

Shell prompt mode

the feature is powered by c-bata/go-prompt.

TODO

  • Authentications webapp, cluster(etcd/k8s)

LICENSE

MIT

Documentation

Index

Constants

View Source
const (
	// AppName const
	AppName = "oakauth" // main app-name
	// Version const
	Version = "1.0.1" // version name
	// VersionInt const
	VersionInt = 0x010001 // using as
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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