Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Authentication Example

$ cd example && go run main.go

$ curl http://localhost:8080/auth
unauthorized

$ curl "http://localhost:8080/auth?access_token=footoken"
hello foo

$ curl -H "Authorization:Bearer bartoken" http://localhost:8080/auth
hello bar