{"id":21607367,"url":"https://github.com/maccyber/kor-client-jose","last_synced_at":"2025-03-18T15:20:47.056Z","repository":{"id":82105823,"uuid":"118911014","full_name":"maccyber/kor-client-jose","owner":"maccyber","description":"klient for kontakt- og reservasjonsregisterets Oauth2-API (Server-til-server)","archived":false,"fork":false,"pushed_at":"2023-12-15T08:53:28.000Z","size":9,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T19:34:25.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/maccyber.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":"2018-01-25T12:37:45.000Z","updated_at":"2018-01-25T12:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a554a3c3-cf1f-4fde-942f-a653b0db3f9a","html_url":"https://github.com/maccyber/kor-client-jose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fkor-client-jose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fkor-client-jose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fkor-client-jose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maccyber%2Fkor-client-jose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maccyber","download_url":"https://codeload.github.com/maccyber/kor-client-jose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246552,"owners_count":20422459,"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":"2024-11-24T20:30:10.307Z","updated_at":"2025-03-18T15:20:47.024Z","avatar_url":"https://github.com/maccyber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIP - Kontakt- og Reservasjonsregisteret klient\n\n[Node.js](https://nodejs.org/en/) klient for kontakt- og reservasjonsregisterets Oauth2-API (Server-til-server) - [mer info](https://difi.github.io/idporten-oidc-dokumentasjon/oidc_api_krr.html)\n\nDenne klienten benytter [node-jose](https://github.com/cisco/node-jose) for generering av JWT.\n\nProgramflyt\n1. Kjører discover av angitt URL, og henter informasjon fra ***\u003cURL\u003e/.well-known/openid-configuration***\n2. Lager JWT-token med sertifikat, og signerer med privat nøkkel\n3. Sender http-forespørsel med JWT for å hente token\n\n## Installasjon\n\n```bash\ngit clone https:/github.com/maccyber/kor-client-jose\nnpm i\nnode tst.js\n```\n\n## Test klient\n\nEndre evt klient-innstillinger i [tst.js](tst.js)\n\nLegg inn ditt sertifikat og privatnøkkel i `data/`\n\nStart med `node tst.js`\n\n## Client options\n\n| Parameter     | Verdi       |\n| ------------- |-------------|\n| url           | URL - f.eks. https://oidc-ver1.difi.no/ |\n| cert          | Virksomhetssertifikat i PEM-format |\n| privateKey    | Privat nøkkel til virksomhetssertifikat |\n| privateKeyPassphrase (valgfri) | Passord for å dekryptere privat nøkkel |\n| issuer        | client ID som er registert hos ID-porten OIDC-provider |\n| scope         | Scope som klient forespør tilgang til, kan sende inn liste av scope separert med whitespace |\n\n\n## License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Fkor-client-jose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaccyber%2Fkor-client-jose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaccyber%2Fkor-client-jose/lists"}