{"id":38542266,"url":"https://github.com/mitigate-dev/omniauth-dnb","last_synced_at":"2026-01-17T07:12:17.507Z","repository":{"id":56886399,"uuid":"86080525","full_name":"mitigate-dev/omniauth-dnb","owner":"mitigate-dev","description":"OmniAuth strategy for Luminor DNB Link","archived":false,"fork":false,"pushed_at":"2024-04-10T10:25:43.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-08T01:18:14.491Z","etag":null,"topics":["omniauth"],"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.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}},"created_at":"2017-03-24T15:06:03.000Z","updated_at":"2023-09-27T13:49:56.000Z","dependencies_parsed_at":"2022-08-21T00:20:27.429Z","dependency_job_id":"7c9a2c5d-1bf0-4a5d-9ed4-849487d12d7c","html_url":"https://github.com/mitigate-dev/omniauth-dnb","commit_stats":null,"previous_names":["mak-it/omniauth-dnb"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mitigate-dev/omniauth-dnb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-dnb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-dnb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-dnb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-dnb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitigate-dev","download_url":"https://codeload.github.com/mitigate-dev/omniauth-dnb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitigate-dev%2Fomniauth-dnb/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":["omniauth"],"created_at":"2026-01-17T07:12:17.409Z","updated_at":"2026-01-17T07:12:17.485Z","avatar_url":"https://github.com/mitigate-dev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth DNB\n\nOmniauth strategy for using [Luminor Link](https://www.luminor.lv/en/terms-conditions#luminor-link) as an authentication service provider.\n\nSupported Ruby versions: 2.7+\n\n## Related projects\n\n- [omniauth-citadele](https://github.com/mitigate-dev/omniauth-citadele) - strategy for authenticating with Citadele\n- [omniauth-nordea](https://github.com/mitigate-dev/omniauth-nordea) - strategy for authenticating with Nordea\n- [omniauth-seb-elink](https://github.com/mitigate-dev/omniauth-seb-elink) - strategy for authenticating with SEB\n- [omniauth-swedbank](https://github.com/mitigate-dev/omniauth-swedbank) - strategy for authenticating with Swedbank\n\n## Installation\n\nAdd this line to your application's Gemfile (omniauth-rails_csrf_protection is required if using Rails):\n\n    gem 'omniauth-rails_csrf_protection'\n    gem 'omniauth-dnb'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install omniauth-rails_csrf_protection omniauth-dnb\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 :dnb,\n    File.read(\"path/to/private.key\"),\n    File.read(\"path/to/bank.crt\"),\n    ENV['DNB_SND_ID'],\n    site: ENV['DNB_SITE'] || OmniAuth::Strategies::Dnb::PRODUCTION_ENDPOINT\nend\n```\n\n## Auth Hash\n\nHere's an example Auth Hash available in `request.env['omniauth.auth']`:\n\n```ruby\n{\n  provider: 'dnb',\n  uid: '374042-80367',\n  info: {\n    full_name: 'ARNIS RAITUMS'\n  },\n  extra: {\n    raw_info: {\n      VK_SERVICE: '2001',\n      VK_VERSION: '101',\n      VK_SND_ID: 'RIKOLV2X',\n      VK_REC_ID: '10..',\n      VK_STAMP: '20170403112855087471',\n      VK_T_NO: '616365957',\n      VK_PER_CODE: '374042-80367',\n      VK_PER_FNAME: 'ARNIS',\n      VK_PER_LNAME: 'RAITUMS',\n      VK_COM_CODE: '',\n      VK_COM_NAME: '',\n      VK_TIME: '20170403113328',\n      VK_MAC: 'SkYmH5AFI6Av ...',\n      VK_LANG: 'LAT'\n    }\n  }\n}\n```\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-dnb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitigate-dev%2Fomniauth-dnb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitigate-dev%2Fomniauth-dnb/lists"}