{"id":16032702,"url":"https://github.com/threez/oidc.cr","last_synced_at":"2025-04-01T13:16:27.764Z","repository":{"id":158831312,"uuid":"631068289","full_name":"threez/oidc.cr","owner":"threez","description":"OIDC client for crystal","archived":false,"fork":false,"pushed_at":"2023-05-10T20:00:10.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T08:12:42.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/threez.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":"2023-04-21T21:06:20.000Z","updated_at":"2023-04-28T12:47:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa50e84e-5668-4ccd-a27f-8094e381363a","html_url":"https://github.com/threez/oidc.cr","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Foidc.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Foidc.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Foidc.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threez%2Foidc.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threez","download_url":"https://codeload.github.com/threez/oidc.cr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644097,"owners_count":20810687,"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":[],"created_at":"2024-10-08T21:40:21.033Z","updated_at":"2025-04-01T13:16:27.744Z","avatar_url":"https://github.com/threez.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oidc [![.github/workflows/ci.yml](https://github.com/threez/oidc.cr/actions/workflows/ci.yml/badge.svg)](https://github.com/threez/oidc.cr/actions/workflows/ci.yml) [![https://threez.github.io/oidc.cr/](https://badgen.net/badge/api/documentation/green)](https://threez.github.io/oidc.cr/)\n\nOIDC client for crystal extends the regular `OAuth2::Client`.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     oidc:\n       github: threez/oidc\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"oidc\"\n\nclient = OIDC::Client.new(\"http://example.com/\", \"client-id\", \"ALSJDHJKASHGDJHGASKDJG\")\n\n# use the client to get authorize uri\nstate = UUID.random\nclient.get_authorize_uri(\"profile email roles openid\", state.to_s)\n\n# get access token for code\nauthorization_code = params[\"code\"]\naccess_token = client.get_access_token_using_authorization_code(authorization_code)\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/threez/oidc.cr/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Vincent Landgraf](https://github.com/threez) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreez%2Foidc.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreez%2Foidc.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreez%2Foidc.cr/lists"}