Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Postgres Storage for OAuth 2.0 inspired by go-oauth2-mysql.

License

NotificationsYou must be signed in to change notification settings

JonathanMonga/go-oauth2-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDocLicense

Install

$ go get -v github.com/JonathanMonga/go-oauth2-postgres

Usage

package mainimport ("github.com/JonathanMonga/go-oauth2-postgres""github.com/go-oauth2/oauth2/v4/manage"_"github.com/lib/pq")funcmain() {manager:=manage.NewDefaultManager()// use postgres token storestore:=postgres.NewDefaultStore(postgres.NewConfig("postgres://postgres:password@localhost/myapp_test?sslmode=disable"),)deferstore.Close()manager.MapTokenStorage(store)// ...}

MIT License

Copyright (c) 2023 Jonathan Monga

About

Postgres Storage for OAuth 2.0 inspired by go-oauth2-mysql.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp