Skip to content

elgris/osin-couchbase-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Couchbase storage for osin OAuth server library

Provides storage for osin

Installation

go get github.com/elgris/osin-couchbase-storage

Running tests

Tests are not pure unit tests, they require running Couchbase instance. You can provide all necessary connection parameters via command line:

go test -couchbase="couchbase://localhost" -bucket="test" -password="111"

Using with osin

Example:

import (
    "github.com/elgris/osin-couchbase-storage"
    "github.com/RangelReale/osin"
)

s, err := storage.NewStorage(storage.Config{
    ConnectionString: "couchbase://localhost",
    BucketName:       "default",
    BucketPassword:   "",
})

if err != nil {
    panic(err.Error())
}

server := osin.NewServer(osin.NewServerConfig(), s)

License

MIT

About

Couchbase-powered storage for osin OAuth server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages