{"id":13879780,"url":"https://github.com/googleapis/signet","last_synced_at":"2025-05-13T20:09:01.008Z","repository":{"id":2290615,"uuid":"3248529","full_name":"googleapis/signet","owner":"googleapis","description":"Signet is an OAuth 1.0 / OAuth 2.0 implementation.","archived":false,"fork":false,"pushed_at":"2025-03-13T23:51:44.000Z","size":865,"stargazers_count":374,"open_issues_count":11,"forks_count":164,"subscribers_count":56,"default_branch":"main","last_synced_at":"2025-04-09T21:41:08.102Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-01-23T17:13:36.000Z","updated_at":"2025-04-04T04:10:23.000Z","dependencies_parsed_at":"2024-01-13T20:57:56.239Z","dependency_job_id":"887015bf-9502-45c9-a487-af9650c5e923","html_url":"https://github.com/googleapis/signet","commit_stats":{"total_commits":344,"total_committers":63,"mean_commits":"5.4603174603174605","dds":0.7354651162790697,"last_synced_commit":"0bc1395123de557445a6d319dc428235ad67dede"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fsignet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fsignet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fsignet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fsignet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/signet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248292630,"owners_count":21079469,"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-08-06T08:02:32.930Z","updated_at":"2025-04-10T20:41:04.277Z","avatar_url":"https://github.com/googleapis.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Signet\n\n\u003cdl\u003e\n  \u003cdt\u003eHomepage\u003c/dt\u003e\u003cdd\u003e\u003ca href=\"https://github.com/googleapis/signet/\"\u003ehttps://github.com/googleapis/signet/\u003c/a\u003e\u003c/dd\u003e\n  \u003cdt\u003eAuthor\u003c/dt\u003e\u003cdd\u003e\u003ca href=\"mailto:bobaman@google.com\"\u003eBob Aman\u003c/a\u003e\u003c/dd\u003e\n  \u003cdt\u003eCopyright\u003c/dt\u003e\u003cdd\u003eCopyright © 2010 Google, Inc.\u003c/dd\u003e\n  \u003cdt\u003eLicense\u003c/dt\u003e\u003cdd\u003eApache 2.0\u003c/dd\u003e\n\u003c/dl\u003e\n\n[![Gem Version](https://badge.fury.io/rb/signet.svg)](https://badge.fury.io/rb/signet)\n\n## Description\n\nSignet is an OAuth 1.0 / OAuth 2.0 implementation.\n\n## Reference\n\n- {Signet::OAuth1}\n- {Signet::OAuth1::Client}\n- {Signet::OAuth1::Credential}\n- {Signet::OAuth1::Server}\n- {Signet::OAuth2}\n- {Signet::OAuth2::Client}\n\n## Example Usage for Google\n\n# Initialize the client\n\n``` ruby\nrequire 'signet/oauth_2/client'\nclient = Signet::OAuth2::Client.new(\n  :authorization_uri =\u003e 'https://accounts.google.com/o/oauth2/auth',\n  :token_credential_uri =\u003e  'https://oauth2.googleapis.com/token',\n  :client_id =\u003e \"#{YOUR_CLIENT_ID}.apps.googleusercontent.com\",\n  :client_secret =\u003e YOUR_CLIENT_SECRET,\n  :scope =\u003e 'email profile',\n  :redirect_uri =\u003e 'https://example.client.com/oauth'\n)\n```\n\n# Request an authorization code\n\n```\nredirect_to(client.authorization_uri)\n```\n\n# Obtain an access token\n\n```\nclient.code = request.query['code']\nclient.fetch_access_token!\n```\n\n## Install\n\n`gem install signet`\n\nBe sure `https://rubygems.org` is in your gem sources.\n\n## Supported Ruby Versions\n\nThis library is supported on Ruby 3.0+.\n\nGoogle provides official support for Ruby versions that are actively supported\nby Ruby Core—that is, Ruby versions that are either in normal maintenance or\nin security maintenance, and not end of life. Older versions of Ruby _may_\nstill work, but are unsupported and not recommended. See\nhttps://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby\nsupport schedule.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fsignet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fsignet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fsignet/lists"}