{"id":15690943,"url":"https://github.com/bwplotka/oidc","last_synced_at":"2025-05-08T00:33:14.760Z","repository":{"id":57499987,"uuid":"91607663","full_name":"bwplotka/oidc","owner":"bwplotka","description":"Golang Open ID Connect (OIDC) client library.","archived":false,"fork":false,"pushed_at":"2022-09-19T08:57:34.000Z","size":145,"stargazers_count":8,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T15:49:14.902Z","etag":null,"topics":["client","golang","login","oidc","openid","refresh-tokens","token-source"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwplotka.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}},"created_at":"2017-05-17T18:26:04.000Z","updated_at":"2023-01-31T22:12:11.000Z","dependencies_parsed_at":"2022-08-28T20:00:56.151Z","dependency_job_id":null,"html_url":"https://github.com/bwplotka/oidc","commit_stats":null,"previous_names":["bplotka/oidc"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Foidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Foidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Foidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Foidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwplotka","download_url":"https://codeload.github.com/bwplotka/oidc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978442,"owners_count":21834907,"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":["client","golang","login","oidc","openid","refresh-tokens","token-source"],"created_at":"2024-10-03T18:17:57.980Z","updated_at":"2025-05-08T00:33:14.714Z","avatar_url":"https://github.com/bwplotka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oidc\n[![Build Status](https://travis-ci.org/bwplotka/oidc.svg?branch=master)](https://travis-ci.org/bwplotka/oidc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bwplotka/oidc)](https://goreportcard.com/report/github.com/bwplotka/oidc)\n\n\nGolang Open ID Connect (OIDC) client library.\n\nThis library provides OIDC client that mimics standard [oauth2](https://github.com/golang/oauth2) library and gives functionality \nfor communicating with any [OIDC](http://openid.net/specs/openid-connect-core-1_0.html)-compliant provider.\n \nThis package was also inspired by [go-oidc](https://github.com/coreos/go-oidc) package by CoreOS.\n\n## Usage:\n\n### Directly oidc package:\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \n    \"github.com/bwplotka/oidc\"\n)\n\nfunc main() {\n    // Performs call discovery endpoint to get all the details about provider.\n    client, err := oidc.NewClient(context.Background(), \"https://issuer-oidc.org\")\n    if err != nil {\n        // handle err\n    }\n    \n    extraDiscoveryStuff := map[string]interface{}{}\n    err = client.Claims(\u0026extraDiscoveryStuff)\n    if err != nil {\n        // handler err\n    }\n    \n    // For exchanging code into token...\n    client.Exchange(...)\n    // For revoking tokens...\n    client.Revoke(...)\n    // For OIDC UserInfo...\n    client.UserInfo(...)\n    // For IDToken verification...\n    client.Verifier(...)\n    // For ID token refreshing...\n    client.TokenSource(...).OIDCToken(context.Background())\n}\n```\n\n### Using login package for full oidc-browser-dance: \n\nSee [login](./login/README.md)\n\n## Deps:\n\nVendoring using submodules. See [.gitmodules](.gitmodules)\n \n\n## Wishlist:\n\n* [x] Support 0 port (not pin into exact port)\n* [ ] Consider moving to structure logger with levels e.g logrus or just drop logging. (I don't like passing std logger in constructor)\n   \n## Copyright \nCopyright 2017 Bartłomiej Płotka. All Rights Reserved.\nSee LICENSE for licensing terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwplotka%2Foidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwplotka%2Foidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwplotka%2Foidc/lists"}