golang-gin

Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT

Github星跟蹤圖

Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT

This repo contains the code samples for the Build a Golang app with the Gin framework, and authenticate with Auth0 + JWT article.

Setup

  1. Update the main.go file with your Auth0 Credentials. Sign up for an account for free if you don't have one.
  2. Update the views/app.jsx file with your Auth0 Credentials.
  3. Add http://localhost:3000 to your Allowed Callback, and Allowed Logout URL's in your Auth0 Management Dashboard.
  4. Run mv .env.sample .env and update with valid credentials
  5. Source the environment variables - source .env
  6. Update dependencies go get
  7. Launch the application by running go run main.go
  8. Navigate to localhost:3000 to view the application

Author

Francis Sunday

License

This project is licensed under the MIT license. See the LICENSE file for more info.

主要指標

概覽
名稱與所有者codehakase/golang-gin
主編程語言JavaScript
編程語言Go (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-04-19 23:09:39
推送於2021-04-17 06:37:51
最后一次提交2018-04-28 15:34:02
發布數0
用户参与
星數185
關注者數6
派生數65
提交數4
已啟用問題?
問題數8
打開的問題數5
拉請求數1
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?