AuthenticationServer

package
v0.0.0-...-6ff31ab Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTokenEndpoint

func CreateTokenEndpoint(c *gin.Context)

func ProtectedEndpoint

func ProtectedEndpoint(c *gin.Context)

func StartJWT

func StartJWT()

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6IjEyMyIsInVzZXJuYW1lIjoiemwifQ.v-wceAG654IBYxBka1D_mNyDHeYmP4l6_4IekQ_Bq9I

Types

type Exception

type Exception struct {
	Message string `json:"message"`
}

type JwtToken

type JwtToken struct {
	Token string `json:"token"`
}

type User

type User struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
}

Jump to

Keyboard shortcuts

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