{"id":38542273,"url":"https://github.com/mitigate-dev/omniauth-eklase","last_synced_at":"2026-01-17T07:12:18.554Z","repository":{"id":56886412,"uuid":"49273802","full_name":"mitigate-dev/omniauth-eklase","owner":"mitigate-dev","description":"e-klase.lv strategy for OmniAuth.","archived":false,"fork":false,"pushed_at":"2019-01-16T11:24:19.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-11T00:45:24.030Z","etag":null,"topics":[],"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/mitigate-dev.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":"2016-01-08T13:33:54.000Z","updated_at":"2025-03-09T22:29:57.000Z","dependencies_parsed_at":"2022-08-21T00:50:37.159Z","dependency_job_id":null,"html_url":"https://github.com/mitigate-dev/omniauth-eklase","commit_stats":null,"previous_names":["mak-it/omniauth-eklase"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mitigate-dev/omniauth-eklase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-eklase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-eklase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-eklase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-eklase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitigate-dev","download_url":"https://codeload.github.com/mitigate-dev/omniauth-eklase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-eklase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-17T07:12:17.920Z","updated_at":"2026-01-17T07:12:18.534Z","avatar_url":"https://github.com/mitigate-dev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth e-klase.lv\n\n[![Continuous Integration status](https://secure.travis-ci.org/mak-it/omniauth-eklase.svg)](http://travis-ci.org/mak-it/omniauth-eklase)\n\nOmniAuth strategy for authenticating to [e-klase.lv](https://www.e-klase.lv/).\n\n## Installation\n\nAdd to your `Gemfile`:\n\n```ruby\ngem 'omniauth-eklase'\n```\n\n## Usage\n\nHere's a quick example, adding the middleware to a Rails app\nin `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :eklase, \"CLIENT_ID\", \"CLIENT_SECRET\"\nend\n```\n\nYou can also see a simplified Rack example in [bin/server](bin/server).\n\n## Auth Hash\n\nHere's an example Auth Hash available in `request.env['omniauth.auth']`:\n\n```ruby\n{\n  provider: \"eklase\",\n  uid: \"99895d09-a454-4f46-9a26-35b4d038c6fe\",\n  info: {\n    \"id\"                   =\u003e \"99895d09-a454-4f46-9a26-35b4d038c6fe\",\n    \"first_name\"           =\u003e \"Ivo\",\n    \"last_name\"            =\u003e \"Paraugs\",\n    \"person_type\"          =\u003e \"Student\",\n    \"user_name\"            =\u003e \"skolens123456789\",\n    \"school_id\"            =\u003e \"IDACC-ORG-20111012-BBBF04AC\",\n    \"school\"               =\u003e \"Testa skola\",\n    \"class_number\"         =\u003e \"8\",\n    \"class_number_postfix\" =\u003e \"b\",\n    \"class_alias\"          =\u003e \"8.b (PĢ)\"\n  },\n  credentials: {\n    \"token\"      =\u003e \"99895d09-a454-4f46-9a26-35b4d038c6fe\",\n    \"expires_at\" =\u003e 1452258538,\n    \"expires\"    =\u003e true\n  },\n  extra: {\n    raw_info: {\n      \"Person\" =\u003e {\n        \"ID\"                 =\u003e \"99895d09-a454-4f46-9a26-35b4d038c6fe\",\n        \"FirstName\"          =\u003e \"Ivo\",\n        \"LastName\"           =\u003e \"Paraugs\",\n        \"PersonType\"         =\u003e \"Student\",\n        \"UserName\"           =\u003e \"skolens123456789\",\n        \"SchoolId\"           =\u003e \"IDACC-ORG-20111012-BBBF04AC\",\n        \"School\"             =\u003e \"Testa skola\",\n        \"ClassNumber\"        =\u003e \"8\",\n        \"ClassNumberPostfix\" =\u003e \"b\",\n        \"ClassAlias\"         =\u003e \"8.b (PĢ)\"\n      }\n    }\n  }\n}\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/mak-it/omniauth-eklase/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-eklase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitigate-dev%2Fomniauth-eklase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-eklase/lists"}