{"id":16382644,"url":"https://github.com/kengu/account-control","last_synced_at":"2026-06-13T20:04:34.480Z","repository":{"id":146894971,"uuid":"152854374","full_name":"kengu/account-control","owner":"kengu","description":"Proof-of-concept for webapp integration with Altinn.","archived":false,"fork":false,"pushed_at":"2018-10-14T23:35:47.000Z","size":548,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T19:26:59.208Z","etag":null,"topics":["altinn","asp-net-web-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kengu.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-10-13T09:05:31.000Z","updated_at":"2018-10-14T23:35:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a138fb0-8689-4965-82c3-dc51219966c2","html_url":"https://github.com/kengu/account-control","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"852f13968673fe7a92bfce22a11fecabc6290f21"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kengu/account-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengu%2Faccount-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengu%2Faccount-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengu%2Faccount-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengu%2Faccount-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kengu","download_url":"https://codeload.github.com/kengu/account-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengu%2Faccount-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34298268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["altinn","asp-net-web-api"],"created_at":"2024-10-11T04:05:57.721Z","updated_at":"2026-06-13T20:04:34.457Z","avatar_url":"https://github.com/kengu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿AccountControl\n==============\nProof-of-concept for webapp integration with Altinn.\n\nPreparations\n------------\n\n1. Ensure that you control at least one domain or subdomain which you register with the application\n2. Follow the instructions on [how to register your application](https://altinn.github.io/docs/guides/integrasjon/sluttbrukere/api/kom-i-gang/#registrer-din-applikasjon).\n\nSetup\n-----\n1. The application requires that the file `AccountControl/PrivateSettings.config` is added to the repo with the following content:\n\t```\n\t\u003c?xml version=\"1.0\" encoding=\"utf-8\" ?\u003e\n\t\u003cappSettings\u003e\n\t  \u003cadd key=\"ApiKeyTest\" value=\"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\" /\u003e\n\t  \u003cadd key=\"UserNID\" value=\"{Norwegian_National_ID}\"/\u003e\n\t\u003c/appSettings\u003e\n\t```\n\n2. Set `Origin` in `AccountControl/Web.config` to a domain or subdomain supplied with in the registration.\n3. Deploy the application to Azure, configure SSL and enforce https only\n\n\nDebugging\n---------\nThe application will not work if `Origin` is not set correctly, or if you deploy and configure Azure with another domain or subdomain than what is \ngiven in origin or registrered with your application in Altinn. If you get the follwing error in the webclient console:\n```\nFailed to load https://tt02.altinn.no/api/my/messages: Response to preflight request doesn't pass access control check: \nNo 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.xxxxxxxxx.no' is therefore not allowed access. \nThe response had HTTP status code 400.\n```\n\nPlease follow the [debugging tips supplied by Altinn](https://altinn.github.io/docs/guides/integrasjon/sluttbrukere/api/kom-i-gang/#feilsøking).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkengu%2Faccount-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkengu%2Faccount-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkengu%2Faccount-control/lists"}