{"id":38542289,"url":"https://github.com/mitigate-dev/omniauth-latvija","last_synced_at":"2026-01-17T07:12:19.140Z","repository":{"id":3586044,"uuid":"4649323","full_name":"mitigate-dev/omniauth-latvija","owner":"mitigate-dev","description":"Latvija.lv authentication strategy for OmniAuth","archived":false,"fork":false,"pushed_at":"2024-05-17T09:00:11.000Z","size":63,"stargazers_count":9,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-14T10:40:58.296Z","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":"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","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}},"created_at":"2012-06-13T10:02:06.000Z","updated_at":"2024-05-17T09:00:12.000Z","dependencies_parsed_at":"2024-05-17T09:30:32.653Z","dependency_job_id":"82cde449-b0ba-4ffe-b4fc-91e874e32ab8","html_url":"https://github.com/mitigate-dev/omniauth-latvija","commit_stats":null,"previous_names":["mak-it/omniauth-latvija"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mitigate-dev/omniauth-latvija","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-latvija","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-latvija/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-latvija/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-latvija/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitigate-dev","download_url":"https://codeload.github.com/mitigate-dev/omniauth-latvija/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-latvija/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503176,"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:18.598Z","updated_at":"2026-01-17T07:12:19.130Z","avatar_url":"https://github.com/mitigate-dev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth Latvija.lv\n\n\u003e **Autentifikācijas serviss.** Ar autentifikācijas servisa palīdzību iestādes var ērti savos pakalpojumu portālos vai reģistros autentificēt pakalpojuma lietotāju atbilstoši visiem drošības standartiem. Iestādei vairs nav nepieciešams veidot jaunus autentifikācijas mehānismus un juridiski slēgt vienošanos ar katru no autentifikācijas iespējas nodrošinātājiem. Šobrīd pieejamos autentifikācijas līdzekļus var apskatīties portālā [www.latvija.lv](http://www.latvija.lv/) sadaļā „E-pakalpojumi”.\n\u003e\n\u003e -- [VRAA E-pakalpojumi](http://www.vraa.gov.lv/lv/epakalpojumi/viss/)\n\nProvides the following authentication types:\n\n* E-paraksts\n* Swedbank\n* SEB banka\n* Online bank\n* Citadele\n* Norvik banka\n* PrivatBank\n* eID\n* Lattelecom Mobile ID\n\n## Installation\n\n```ruby\ngem 'omniauth-latvija'\n```\n\n## Usage\n\n`OmniAuth::Strategies::Latvija` is simply a Rack middleware. Read the OmniAuth 1.x docs for detailed instructions: https://github.com/intridea/omniauth.\n\nHere's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:\n\n```ruby\nRails.application.config.middleware.use OmniAuth::Builder do\n  provider :latvija, {\n    endpoint:    \"https://epaktv.vraa.gov.lv/IVIS.LVP.STS/Default.aspx\",\n    certificate: File.read(\"/path/to/cert.pem\"),\n    private_key: File.read(\"/path/to/private_key.pem\"), # mandatory, if the response is encrypted\n    realm:       \"urn:federation:example.com\"\n  }\nend\n```\n\n\n## Auth Hash\n\nHere's an example hash available in `request.env['omniauth.auth']`\n\n```ruby\n{\n  provider: 'latvija',\n  uid: 'PK:12345612345',\n  info: {\n    name: 'JANIS BERZINS',\n    first_name: 'JANIS',\n    last_name: 'BERZINS',\n    private_personal_identifier: '12345612345'\n  },\n  extra: {\n    raw_info: {\n      givenname: 'JANIS',\n      surname: 'BERZINS',\n      privatepersonalidentifier: '12345612345',\n      historical_privatepersonalidentifier: [],\n      not_valid_before: '2019-05-09T07:29:41Z',\n      not_valid_on_or_after: '2019-05-09T08:29:41Z'\n    },\n    authentication_method: 'URN:IVIS:100001:AM.BANK-SWED',\n    original_issuer: 'Swedbanka',\n    legacy_uids: ['JANIS BERZINS, 12345612345']\n  }\n}\n```\n\n## References\n\n* http://docs.oasis-open.org/wsfed/federation/v1.2/os/ws-federation-1.2-spec-os.html\n* http://msdn.microsoft.com/en-us/library/bb498017.aspx\n* http://msdn.microsoft.com/en-us/library/bb608217.aspx\n* https://github.com/onelogin/ruby-saml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-latvija","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitigate-dev%2Fomniauth-latvija","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-latvija/lists"}