File: README.md

package info (click to toggle)
golang-github-centrifugal-centrifuge 0.15.0%2Bgit20210306.f435ba2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,612 kB
  • sloc: javascript: 102; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
Simple chat with OAuth2 authentication via Google.

To start example run the following command from example directory:

```
SESSION_SECRET=XXX GOOGLE_CLIENT_ID=XXX GOOGLE_CLIENT_SECRET=XXX go run main.go
```

To get GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET you need to register your application in Google Cloud Console (this is free). See instruction in [this great post by Henrik Fogelberg](https://medium.com/@hfogelberg/the-black-magic-of-oauth-in-golang-part-1-3cef05c28dde) on Medium.