Skip to content

wheatandcat/example-golang-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-golang-oauth2

概要

Go言語のoauth認証 / 連携のサンプルソース

  • サンプル内容
  • google,twitter,facebook,githubでoauth認証
  • twitterでAPI投稿

導入

事前準備

セットアップ

conf/app_template.conf → conf/app.confに変更して、 必要な設定を追加

appname = example-golang-oauth2
httpport = 8080
runmode = dev

googleClientID = ""
googleClientSecret = ""

twitterConsumerKey = ""
twitterConsumerSecret = ""

facebookClientID = ""
facebookClientSecret = ""

githubClientID = ""
githubClientSecret = ""

SessionOn = true

インストール

glide install

start

bee run
# 「http://localhost:8080/」にブラウザでアクセス

About

example-golang-oauth2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published