Various tools used for testing Altinn
Simple HTTP API for generating arbitrary enterprise and person access tokens for test environments, used for automated testing. Matches tokens produced by Altinn3 token exchange. Implemented as a Azure Function running at https://altinn-testtools-token-generator.azurewebsites.net.
The application requires authentication. Currently only available for internal use in Digdir. Contact the repo owner for more information.
{environment}
is an Altinn Cloud environment name eg. at24
https://altinn-testtools-token-generator.azurewebsites.net/api/GetEnterpriseToken?env={environment}&scopes={scopes}&org={orgName}&orgNo={orgNo}
https://altinn-testtools-token-generator.azurewebsites.net/api/GetEnterpriseUserToken?env={environment}&orgNo={orgNo}&partyId={partyId}&userId={userId}&userName={userName}
https://altinn-testtools-token-generator.azurewebsites.net/api/GetPersonalToken?env={environment}&scopes={scopes}&userId={userId}&partyId={partyId}&pid={pid}
supplierOrgNo
(Enterprise tokens only)ttl
(Default: 1800 seconds)authLvl
(Personal tokens only. Default:3
)consumerOrgNo
(Personal tokens only. Default:991825827
)userName
(Personal tokens only. Default: empty string)clientAmr
(Personal tokens only. Default:virksomhetssertifikat
)
Simple console app for calling the API from a shell script. Uses appsettings.json
for default settings, all of which can be overridden by command line arguments.
Build, and run TokenGeneratorCli.exe --help