Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maccyber/ruby-krr-wip
Module for authenticate with oauth2 and retreiving data from kontakt- og reservasjonsregisteret
https://github.com/maccyber/ruby-krr-wip
Last synced: 28 days ago
JSON representation
Module for authenticate with oauth2 and retreiving data from kontakt- og reservasjonsregisteret
- Host: GitHub
- URL: https://github.com/maccyber/ruby-krr-wip
- Owner: maccyber
- License: mit
- Created: 2021-02-15T16:31:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:17:23.000Z (about 1 year ago)
- Last Synced: 2024-04-28T02:36:38.411Z (8 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# krr
Module for authenticate with oauth2 and retreiving data from kontakt- og reservasjonsregisteret
### Example
```ruby
# frozen_string_literal: truerequire 'krr'
require 'openssl'private_key_file = File.read('data/private.key')
public_cert_file = File.read('data/public.pem')
private_key = OpenSSL::PKey::RSA.new(private_key_file)
public_cert = OpenSSL::X509::Certificate.new(public_cert_file).to_skrr_instance = KRR.new('https://oidc-ver1.difi.no', public_cert, private_key, 'oidc_user', 'global/kontaktinformasjon.read')
pp krr_instance.retrive_data(personidentifikatorer: ['23079422568'])
```### LICENSE
[MIT](LICENSE)