{"id":27786297,"url":"https://github.com/clever/omniauth-clever","last_synced_at":"2025-06-15T09:07:18.634Z","repository":{"id":7974803,"uuid":"9376458","full_name":"Clever/omniauth-clever","owner":"Clever","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-26T18:40:39.000Z","size":24,"stargazers_count":6,"open_issues_count":7,"forks_count":59,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-06-12T06:07:21.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"thinkthroughmath/omniauth-clever","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clever.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-04-11T17:42:16.000Z","updated_at":"2024-04-24T16:42:13.000Z","dependencies_parsed_at":"2025-04-30T16:00:50.487Z","dependency_job_id":"ac95dcce-66b9-412f-90de-60e8651dba75","html_url":"https://github.com/Clever/omniauth-clever","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Clever/omniauth-clever","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fomniauth-clever","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fomniauth-clever/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fomniauth-clever/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fomniauth-clever/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clever","download_url":"https://codeload.github.com/Clever/omniauth-clever/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fomniauth-clever/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259949684,"owners_count":22936411,"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":"2025-04-30T15:59:14.880Z","updated_at":"2025-06-15T09:07:18.600Z","avatar_url":"https://github.com/Clever.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth Clever\n\nUnofficial OmniAuth strategy for [Clever SSO OAuth2](https://dev.clever.com/sso) integration.\n\n## Installation\n\nAdd the gem to your application's Gemfile:\n\n    gem 'omniauth-clever', '~\u003e 1.2.1'\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nOmniAuth Clever is Rack Middleware in the OmniAuth convention. See the\n[OmniAuth 1.0 docs](https://github.com/intridea/omniauth) for more information.\n\nFollow the Clever OAuth docs to register your application, set callback URLs,\nand get a client ID and client secret.\n\nExample: In `config/initializers/omniauth.rb`, do:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :clever, ENV['CLEVER_CLIENT_ID'], ENV['CLEVER_CLIENT_SECRET']\nend\n```\n\nClever is a unique OAuth 2.0 service provider in that login sequences\nare often initiated by Clever, not the client. When Clever initiates\nlogin, a state parameter is not relevant nor sent.\n\n\n## Configuring\n\nTo be able to set the optional `district_id` parameter on a\nper-request basis, passing this params to your `/auth/clever` url, use\nthis in the initializer instead:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :clever, ENV['CLEVER_CLIENT_ID'], ENV['CLEVER_CLIENT_SECRET'],\n           :setup =\u003e lambda { |env|\n             params = Rack::Utils.parse_query(env['QUERY_STRING'])\n             env['omniauth.strategy'].options[:client_options][:district_id] = params['district_id']\n           }\nend\n```\n\n## Testing\n\nThis strategy can be and has been tested with the [omniauth-test-harness](https://github.com/PracticallyGreen/omniauth-test-harness).\n\n## Contributing\n\n1. Fork it\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 new Pull Request\n\n## License\n\nMIT. See LICENSE.txt.\n\n## Thank yous\n\nThank you to the [Clever](https://github.com/Clever/) team for their awesome\nproduct and always being helpful with any issues. Thank you to [Think Through\nMath](https://github.com/thinkthroughmath) for dedicating time for the tech\nteam to make open source contributions such as this. Thank you to [StudyPad](https://github.com/StudyPad) for helping bringing the strategy up to date.\n\nAnd, of course. thank you to [Omniauth](https://github.com/intridea/omniauth)\nfor making it so easy create this gem!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Fomniauth-clever","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclever%2Fomniauth-clever","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Fomniauth-clever/lists"}