hufu

module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT

README

虎符(oauth2)

Oauth2 Server

Credentials

http://localhost/token?grant_type=client_credentials&client_id=asdgasdfrvdsvasd&client_secret=dfgbgsbasdas
{
    "code": 200,
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmciOiJnYmFzZGZzZmJzZ2FzZGYiLCJ1aWQiOiJhc2RnYXNkZnJ2ZHN2YXNkIiwibmJmIjoxNjkxNzM4NjU0LCJpYXQiOjE2OTE3Mzg2NTQsImV4cCI6MTY5NDMzMDY1NCwianRpIjoiOTM3M2NkYTAtYzQ0ZS00ZDA0LTliMWYtODFjYzM4MDdlYzE3IiwiaXNzIjoid3d3LmRlbW8uY29tIiwic3ViIjoiX19hc2RnYXNkZnJ2ZHN2YXNkIiwiYXVkIjpbIiJdfQ.SBjic7eOaV80QP9WnKpYJ2sAkzJhBD9QqtVikXHJ3SM",
    "tokenType": "bearer",
    "expiresIn": 2592000
}

Token Check

http://localhost/validate
Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmciOiJnYmFzZGZzZmJzZ2FzZGYiLCJ1aWQiOiJhc2RnYXNkZnJ2ZHN2YXNkIiwibmJmIjoxNjkxNzM4NjU0LCJpYXQiOjE2OTE3Mzg2NTQsImV4cCI6MTY5NDMzMDY1NCwianRpIjoiOTM3M2NkYTAtYzQ0ZS00ZDA0LTliMWYtODFjYzM4MDdlYzE3IiwiaXNzIjoid3d3LmRlbW8uY29tIiwic3ViIjoiX19hc2RnYXNkZnJ2ZHN2YXNkIiwiYXVkIjpbIiJdfQ.SBjic7eOaV80QP9WnKpYJ2sAkzJhBD9QqtVikXHJ3SM
{
    "code": 200
}

Directories

Path Synopsis
cmd
b
internal
etc

Jump to

Keyboard shortcuts

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