{"id":13563363,"url":"https://github.com/go-oauth2/redis","last_synced_at":"2025-04-24T10:32:14.793Z","repository":{"id":45237233,"uuid":"63992355","full_name":"go-oauth2/redis","owner":"go-oauth2","description":"Redis storage for OAuth 2.0","archived":false,"fork":false,"pushed_at":"2024-04-22T20:42:03.000Z","size":42,"stargazers_count":50,"open_issues_count":5,"forks_count":35,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-04T16:44:08.410Z","etag":null,"topics":["go-oauth2","go-oauth2-redis"],"latest_commit_sha":null,"homepage":"https://godoc.org/gopkg.in/go-oauth2/redis.v3","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-oauth2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-23T01:04:14.000Z","updated_at":"2024-08-26T07:10:06.000Z","dependencies_parsed_at":"2023-11-16T11:29:23.818Z","dependency_job_id":"1c7b987b-c1fd-4f53-a294-10217b6a8941","html_url":"https://github.com/go-oauth2/redis","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-oauth2%2Fredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-oauth2%2Fredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-oauth2%2Fredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-oauth2%2Fredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-oauth2","download_url":"https://codeload.github.com/go-oauth2/redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223948435,"owners_count":17230132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go-oauth2","go-oauth2-redis"],"created_at":"2024-08-01T13:01:18.437Z","updated_at":"2024-11-10T12:14:32.345Z","avatar_url":"https://github.com/go-oauth2.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Redis Storage for [OAuth 2.0](https://github.com/go-oauth2/oauth2)\n\n[![Build][Build-Status-Image]][Build-Status-Url] [![Codecov][codecov-image]][codecov-url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]\n\n## Install\n\n``` bash\n$ go get -u -v github.com/go-oauth2/redis/v4\n```\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"github.com/go-redis/redis/v8\"\n\toredis \"github.com/go-oauth2/redis/v4\"\n\t\"github.com/go-oauth2/oauth2/v4/manage\"\n)\n\nfunc main() {\n\tmanager := manage.NewDefaultManager()\n\t\n\t// use redis token store\n\tmanager.MapTokenStorage(oredis.NewRedisStore(\u0026redis.Options{\n\t\tAddr: \"127.0.0.1:6379\",\n\t\tDB: 15,\n\t}))\n\n\t// use redis cluster store\n\t// manager.MapTokenStorage(oredis.NewRedisClusterStore(\u0026redis.ClusterOptions{\n\t// \tAddrs: []string{\"127.0.0.1:6379\"},\n\t// \tDB: 15,\n\t// }))\n}\n```\n\n## MIT License\n\n```\nCopyright (c) 2020 Lyric\n```\n\n[Build-Status-Url]: https://travis-ci.org/go-oauth2/redis\n[Build-Status-Image]: https://travis-ci.org/go-oauth2/redis.svg?branch=master\n[codecov-url]: https://codecov.io/gh/go-oauth2/redis\n[codecov-image]: https://codecov.io/gh/go-oauth2/redis/branch/master/graph/badge.svg\n[reportcard-url]: https://goreportcard.com/report/github.com/go-oauth2/redis/v4\n[reportcard-image]: https://goreportcard.com/badge/github.com/go-oauth2/redis/v4\n[godoc-url]: https://godoc.org/github.com/go-oauth2/redis/v4\n[godoc-image]: https://godoc.org/github.com/go-oauth2/redis/v4?status.svg\n[license-url]: http://opensource.org/licenses/MIT\n[license-image]: https://img.shields.io/npm/l/express.svg","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-oauth2%2Fredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-oauth2%2Fredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-oauth2%2Fredis/lists"}