{"id":23427512,"url":"https://github.com/tcrouch/omniauth-wonde","last_synced_at":"2025-04-09T12:42:46.148Z","repository":{"id":48481057,"uuid":"207854739","full_name":"tcrouch/omniauth-wonde","owner":"tcrouch","description":"OmniAuth strategy for Wonde","archived":false,"fork":false,"pushed_at":"2022-11-28T19:42:59.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T04:51:51.784Z","etag":null,"topics":["authentication","edtech","oauth2","omniauth","ruby","wonde"],"latest_commit_sha":null,"homepage":null,"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/tcrouch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-11T16:13:26.000Z","updated_at":"2022-07-16T13:33:22.000Z","dependencies_parsed_at":"2022-08-21T00:20:30.106Z","dependency_job_id":null,"html_url":"https://github.com/tcrouch/omniauth-wonde","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcrouch%2Fomniauth-wonde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcrouch%2Fomniauth-wonde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcrouch%2Fomniauth-wonde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcrouch%2Fomniauth-wonde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcrouch","download_url":"https://codeload.github.com/tcrouch/omniauth-wonde/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045220,"owners_count":21038553,"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":["authentication","edtech","oauth2","omniauth","ruby","wonde"],"created_at":"2024-12-23T06:33:43.786Z","updated_at":"2025-04-09T12:42:46.130Z","avatar_url":"https://github.com/tcrouch.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth::Wonde\n\n[![Gem Version](https://img.shields.io/gem/v/omniauth-wonde.svg)](https://rubygems.org/gems/omniauth-wonde)\n[![Ruby](https://github.com/tcrouch/omniauth-wonde/actions/workflows/ruby.yml/badge.svg)](https://github.com/tcrouch/omniauth-wonde/actions/workflows/ruby.yml)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/87b66fa1686348c38fc6936a85c63685)](https://www.codacy.com/manual/t.crouch/omniauth-wonde)\n\nStrategy to authenticate with Wonde via OAuth2 in OmniAuth.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'omniauth-wonde'\n```\n\nAnd then execute:\n\n```console\n$ bundle\n```\n\nOr install it yourself as:\n\n```console\n$ gem install omniauth-wonde\n```\n\n## Usage\n\nFor example, adding middleware to a Rails app in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :wonde, ENV['WONDE_CLIENT_ID'], ENV['WONDE_CLIENT_SECRET']\nend\n```\n\nThe OmniAuth Wonde URL is then accessible at: `/auth/wonde`\n\n### Devise\n\nSpecify as a provider in `config/initializers/devise.rb`:\n\n```ruby\n  config.omniauth :wonde, ENV['WONDE_CLIENT_ID'], ENV['WONDE_CLIENT_SECRET']\n```\n\n### Configuration\n\nAdditional configuration options can be provided as keyword arguments.\n\n- `redirect_uri:` specify a custom redirect URI\n\n## Auth hash\n\nExample of authentication hash available in `request.env['omniauth.auth']`:\n\n```ruby\n{\n  \"provider\" =\u003e \"wonde\",\n  \"uid\" =\u003e \"A1000000000\",\n  \"info\" =\u003e {\n    \"name\" =\u003e \"John Schmidt\",\n    \"first_name\" =\u003e \"John\",\n    \"last_name\" =\u003e \"Schmidt\",\n    \"middle_names\" =\u003e \"Jacob Jingleheimer\",\n    \"school_name\" =\u003e \"Acorn Primary School\",\n    \"school_id\" =\u003e \"A1000000001\",\n    \"person_type\" =\u003e \"student\",\n    \"person_id\" =\u003e \"A100000002\",\n    \"upi\" =\u003e \"0d50e37c226a4c189404f2d0747f5839\"\n  },\n  \"credentials\" =\u003e {\n    \"token\" =\u003e \"[TOKEN]\",\n    \"refresh_token\" =\u003e \"[REFRESH_TOKEN]\",\n    \"expires_at\" =\u003e 1496120719,\n    \"expires\" =\u003e true\n  },\n  \"extra\" =\u003e {\n    \"raw_info\" =\u003e {\n      \"Me\" =\u003e {\n        \"id\" =\u003e \"A1000000000\",\n        \"Person\" =\u003e {\n          \"id\" =\u003e \"A100000002\",\n          \"type\" =\u003e \"student\",\n          \"forename\" =\u003e \"John\",\n          \"middle_names\" =\u003e \"Jacob Jingleheimer\",\n          \"surname\" =\u003e \"Schmidt\",\n          \"upi\" =\u003e \"0d50e37c226a4c189404f2d0747f5839\",\n          \"School\" =\u003e {\n            \"id\" =\u003e \"A1000000001\",\n            \"name\" =\u003e \"Acorn Primary School\"\n          }\n        }\n      }\n    }\n  }\n}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/tcrouch/omniauth-wonde.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcrouch%2Fomniauth-wonde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcrouch%2Fomniauth-wonde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcrouch%2Fomniauth-wonde/lists"}