Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udhos/groupcache_oauth2
groupcache_oauth2 implements the oauth2 client_credentials flow cacheing tokens with groupcache.
https://github.com/udhos/groupcache_oauth2
client-credentials go golang groupcache oauth2
Last synced: 7 days ago
JSON representation
groupcache_oauth2 implements the oauth2 client_credentials flow cacheing tokens with groupcache.
- Host: GitHub
- URL: https://github.com/udhos/groupcache_oauth2
- Owner: udhos
- License: mit
- Created: 2024-01-20T23:52:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T00:02:20.000Z (about 2 months ago)
- Last Synced: 2024-12-11T01:18:18.577Z (about 2 months ago)
- Topics: client-credentials, go, golang, groupcache, oauth2
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/groupcache_oauth2/blob/main/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/groupcache_oauth2)](https://goreportcard.com/report/github.com/udhos/groupcache_oauth2)
[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/groupcache_oauth2.svg)](https://pkg.go.dev/github.com/udhos/groupcache_oauth2)# groupcache_oauth2
https://github.com/udhos/groupcache_oauth2 implements the oauth2 client_credentials flow cacheing tokens with [groupcache](https://github.com/modernprogram/groupcache).
# Usage
FIXME WRITEME
# Example client
See [cmd/groupcache-oauth2-client-example/main.go](cmd/groupcache-oauth2-client-example/main.go).
# Test with example client
Test using this token server: https://oauth.tools/collection/1599045253169-GHF
```bash
go install github.com/udhos/oauth2/cmd/groupcache-oauth2-client-example@latestgroupcache-oauth2-client-example -tokenURL https://login-demo.curity.io/oauth/v2/oauth-token -clientID demo-backend-client -clientSecret MJlO3binatD9jk1
```# Development
```bash
git clone https://github.com/udhos/groupcache_oauth2
cd groupcache_oauth2
./build.sh
```