gin_auth

command
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 12 Imported by: 0

README

Example demonstrates simple chat with JSON protocol sharing session auth with gin-gonic.

Client uses Websocket by default, but you can simply uncomment one line in chat.html to use SockJS instead.

To start example run the following command from example directory:

GO111MODULE=on go run main.go

Then go to http://localhost:8080/login to see it in action.

Once logged in, it will redirect you to the /chat page where you can see that you are logged in through gin. There is only one email/pass combination : email@email.com:password

Credits to the example by FZambia from whom I took most of the centrifuge code

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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