Skip to content
/ auth-go Public

Authentication client application for people or bot.

License

Notifications You must be signed in to change notification settings

Arveto/auth-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-go

GoDoc

Authentication client application for people or bot.

id: string
pseudo: string
email: string
level: enum { no, candidate, visitor, standard, administrator }
bot: bool
teams: []string
go get -v -u github.com/Arveto/auth-go

Provider

URL Comments
/auth?app={APP}&r={REDIRECT} Gen teken and redirect user to /login?jwt=$JWT
/avatar Get the user's avatar (picture)
/publickey Get in PEM the provider's public key

Client Application

URL Comments
/login?r={REDIRECT} Redirect the user to the provider
/login?jwt={JWT}&r={REDIRECT} Save the tocken into a cookie
/avatar?u={ID} Redirect to the provider to get the avatar
/forget?jwt={JWT} (doit être un administrateur) Remove a user (must be an administrator) (DELETE method)
/me Get connected user information and expiration date (JSON)

The token can be in a cookie or in a HTTP header: Authorization: Bearer <JWT>

About

Authentication client application for people or bot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages