Skip to content

cartabinaria/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth

Progetto che permette agli studenti di accedere ai servizi di CartaBinaria collegando il proprio account Github.

Usage

Run tool with:

go run cmd/auth.go

Generate swagger.json with:

swag init -g cmd/auth.go
swag fmt

To login, in your browser go to:

http://localhost:3000/login?redirect_uri=http://localhost:3000/whoami

A cookie named auth should be set, and then to logout:

http://localhost:3000/logout?redirect_uri=http://localhost:3000/whoami

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages