Creating and publishing API scheme in altinn Studio
This explaines how you can define a API scheme in Altinn
In Altinn Studio Resource admin, you can create resources to use as a basis for access control for services outside of the Altinn Platform.
Prerequisites
You need to have access to resource administration for your organization. See Getting started guide
Step 1 Create Resource
Log in to Altinn Studio
Create Resource
The ID given for resource will be the one used in Altinn API for checking access. This need to be globally unique
Resource Type
For api scheme resources, the type will be Api Scheme access resource.
Title
The title will be shown in Access Management and in service catalogues like data.altinn.no
You need to define the title in bokmål, nynorsk and english.
Description
The description will be shown in Access Management and in service catalogues like data.altinn.no
You need to define the description in bokmål, nynorsk and english.
Delegation description
If the resource should be able to be delegated as resource delegation you need to enable the delegation and set delegation description in bokmål, nynorsk and english.
Keywords
Keywords can be set for help. Currently not used but might be used for different service catalogues later
Status
The status of the API that the API scheme is pointing to
Scope
The scope that protects the API and is delegated.
Contact information
Contact information for the service. Might be presented in service cataloge on a later stage.
Create Policy
When resource is created you need to define the policy. The policy needs to contain a minimum of 1 rule.
Each rule contains of resource, subject and action
Resource
Define the resource for the rule
Action
Define the action for the rule
Subject
Define the subject for the role. You can choose amongst ER roles, Altinn Roles, and Access Packages(todo)
Publish
When you have finished setting the resource settings and policy you can publish. Before publish you need to set a new version ID and commit changes to the resource repository.
Verify
When the API Scheme is published you can delegate it from the Altinn Portal