- Notifications
You must be signed in to change notification settings - Fork0
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
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Postgres Storage forOAuth 2.0
$ go get -v github.com/JonathanMonga/go-oauth2-postgres
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)// ...}
Copyright (c) 2023 Jonathan MongaAbout
Postgres Storage for OAuth 2.0 inspired by go-oauth2-mysql.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.