You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2020. It is now read-only.
Install library with go get github.com/uniplaces/osin-dynamodb
or if you use glide with glide get github.com/uniplaces/osin-dynamodb
Usage
import (
"github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/aws/session""github.com/aws/aws-sdk-go/service/dynamodb""github.com/uniplaces/osin-dynamodb""github.com/RangelReale/osin""os"
)
funcmain() {
// This is configuration for local DynamoDB instance used in tests,// for details how to configure your real AWS DynamoDB connection check DynamoDB documentationos.Clearenv()
os.Setenv("AWS_ACCESS_KEY_ID", "a")
os.Setenv("AWS_SECRET_ACCESS_KEY", "b")
svc:=dynamodb.New(session.New(&aws.Config{
Endpoint: aws.String("https://localhost:4567"),
Region: aws.String("us-west-1"),
}))
// You can use CreateStorageConfig helper to create configuration or you can create it by yourselfstorageConfig:=osindynamodb.CreateStorageConfig("oauth_table_prefix_")
// Initializationstore:=osindynamodb.New(svc, storageConfig)
server:=osin.NewServer(osin.NewServerConfig(), store)
// For further details how to use osin server check osin documentation
}