Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matthewhartstonge/storage

A Mongo Storage backend for https://github.com/ory/fosite
https://github.com/matthewhartstonge/storage

fosite fosite-storage-mongo go golang mongo oauth2 storage storage-backend

Last synced: 3 months ago
JSON representation

A Mongo Storage backend for https://github.com/ory/fosite

Awesome Lists containing this project

README

        

# fosite-storage-mongo
[![Build Status](https://github.com/matthewhartstonge/storage/actions/workflows/go.yaml/badge.svg?branch=development)](https://github.com/matthewhartstonge/storage/actions/workflows/go.yaml) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmatthewhartstonge%2Fstorage.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmatthewhartstonge%2Fstorage?ref=badge_shield) [![Go Report Card](https://goreportcard.com/badge/github.com/matthewhartstonge/storage)](https://goreportcard.com/report/github.com/matthewhartstonge/storage)

fosite-storage-mongo provides a native Go based [Mongo backed database storage][mongo-driver]
that conforms to *all the interfaces!* required by [fosite][fosite].

**Table of contents**
- [Compatibility](#compatibility)
- [Development](#development)
- [Testing](#testing)
- [Examples](#examples)

## Compatibility
The following table lists the compatible versions of fosite-storage-mongo with
fosite. If you are currently using this in production, it would be awesome to
know what versions you are successfully paired with.

| storage version | minimum fosite version | maximum fosite version |
|----------------:|-----------------------:|-----------------------:|
| `v0.34.X` | `v0.33.X` | `v0.34.X` |
| `v0.33.X` | `v0.33.X` | `v0.34.X` |
| `v0.32.X` | `v0.33.X` | `v0.34.X` |
| `v0.31.X` | `v0.33.X` | `v0.34.X` |
| `v0.30.X` | `v0.33.X` | `v0.34.X` |

## Development
To start hacking:
* Install [Go][Go] >1.14
* Use Go modules!
* `go build` successfully!

### Testing
Use `go test ./...` to discover heinous crimes against coding!

## Examples
For a quick start check out the following examples based on the `fosite-example`
repo for reference:

- [MongoDB Example](./examples/mongo)

## Licensing
storage is under the Apache 2.0 License.

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmatthewhartstonge%2Fstorage.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmatthewhartstonge%2Fstorage?ref=badge_large)

[//]: #
[mongo-driver]:
[dep]:
[go]:
[fosite]:
[hydra]:
[fosite-example-server]: