{"id":30020714,"url":"https://github.com/qnyp/omniauth-qnyp","last_synced_at":"2026-05-10T16:03:58.113Z","repository":{"id":20251057,"uuid":"88269992","full_name":"qnyp/omniauth-qnyp","owner":"qnyp","description":"qnyp Strategy for OmniAuth 🔐","archived":false,"fork":false,"pushed_at":"2022-01-22T18:16:03.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T03:22:10.300Z","etag":null,"topics":["oauth2","omniauth","qnyp","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/qnyp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-14T13:29:47.000Z","updated_at":"2022-01-22T03:11:23.000Z","dependencies_parsed_at":"2022-07-25T07:02:06.379Z","dependency_job_id":null,"html_url":"https://github.com/qnyp/omniauth-qnyp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/qnyp/omniauth-qnyp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnyp%2Fomniauth-qnyp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnyp%2Fomniauth-qnyp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnyp%2Fomniauth-qnyp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnyp%2Fomniauth-qnyp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qnyp","download_url":"https://codeload.github.com/qnyp/omniauth-qnyp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qnyp%2Fomniauth-qnyp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267473961,"owners_count":24093207,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["oauth2","omniauth","qnyp","rails","ruby"],"created_at":"2025-08-06T02:03:33.983Z","updated_at":"2026-05-10T16:03:53.068Z","avatar_url":"https://github.com/qnyp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Omniauth::Qnyp\n\n[![Ruby](https://github.com/qnyp/omniauth-qnyp/actions/workflows/ruby.yml/badge.svg)](https://github.com/qnyp/omniauth-qnyp/actions/workflows/ruby.yml)\n\nThis is the official OmniAuth strategy for authenticating to qnyp.\nTo use it, you'll need to register your application on [qnyp Applications Page](https://qnyp.com/oauth/applications/new) (Login required).\n\n## Using This Strategy\n\nFirst start by adding this gem to your Gemfile:\n\n```ruby\ngem 'omniauth-qnyp'\n```\n\nNext, tell OmniAuth about this provider.\nFor a Rails app, your `config/initializers/omniauth.rb` file should look like this:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :qnyp, ENV.fetch('QNYP_APP_ID'), ENV.fetch('QNYP_APP_SECRET'), scope: 'public'\nend\n```\n\nReplace `QNYP_APP_ID` and `QNYP_APP_SECRET` with your application ID and application secret.\n\n## Scopes\n\nqnyp API lets you set scopes to provide granular access to different types of data.\n\nIf you want to access public information by API, specify `scope:` option with `public`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :qnyp, '...', '...', scope: 'public'\nend\n```\n\nOr, if you want to access public information and write a log by API, specify `scope:` option with `public write`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :qnyp, '...', '...', scope: 'public write'\nend\n```\n\n## Auth Hash Schema\n\nOmniAuth will return an authentication hash similar to the example below. Learn more about the [Auth Hash Schema](https://github.com/omniauth/omniauth/wiki/Auth-Hash-Schema).\n\n```ruby\n{\n  \"provider\" =\u003e \"qnyp\",\n  \"uid\" =\u003e 1, # User ID\n  \"info\" =\u003e {\n    \"language\" =\u003e \"ja\", # Preffered language for UI (ja or en)\n    \"name\" =\u003e \"junya\", # Name for display\n    \"profile_image_url\" =\u003e \"http://example.com/profile_image.png\", # Profile image URL\n    \"username\" =\u003e \"junya\", # Username (unique identifier)\n  },\n  \"credentials\" =\u003e {\n    \"expires\" =\u003e false,\n    \"token\" =\u003e \"...\", # Access token\n  }\n}\n```\n\n## Development\n\n```\n$ bundle install\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/qnyp/omniauth-qnyp/fork )\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## License\n\nThe MIT License (MIT)\nCopyright (c) 2017 qnyp, LLC.\n\nSee `LICENSE.txt`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnyp%2Fomniauth-qnyp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqnyp%2Fomniauth-qnyp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqnyp%2Fomniauth-qnyp/lists"}