-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dialogporten>reference>authorization, add link from api>dialogpor…
…ten (#1822) * Add dialogporten>reference>authorization, add link from api>dialogporten * Drop anchor tag to dynamic content as this confuses link checker
- Loading branch information
Showing
10 changed files
with
431 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Dialogporten API | ||
linktitle: Dialogporten | ||
description: API for Dialogporten functionality | ||
--- | ||
|
||
Please refer to the following sections for Dialogporten API reference information | ||
|
||
* [OpenAPI specifications]({{<relref "../../dialogporten/reference/openapi">}}) | ||
* [GraphQL specifications]({{<relref "../../dialogporten/reference/graphql">}}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
content/dialogporten/getting-started/authorization/attributes/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
content/dialogporten/getting-started/authorization/dialog-tokens/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
content/dialogporten/reference/authorization/altinn-authorization/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: 'Altinn Authorization' | ||
description: 'Technical overview of how Dialogporten integrates with Altinn Authorization' | ||
weight: 1 | ||
--- | ||
|
||
## Introduction | ||
|
||
Dialogporten is fully integrated with Altinn Authorization, which is used for all authorization decisions made in Dialogporten. | ||
|
||
For performance reasons, there are two different ways that Altinn Authorization is utilized. | ||
|
||
## Authentication and coarse-grained authorization | ||
|
||
Dialogporten performs basic authentication and scope-based authorization via self-contained access tokens issued by Maskinporten and ID-porten, and optionally exhanged at Altinn Token Exchange. | ||
|
||
**See also** | ||
* {{<link "../../../user-guides/authenticating">}} | ||
|
||
|
||
## Dialog list authorization | ||
|
||
All list views in Dialogporten utilizes the [Authorized Parties API]({{<relref "../../../../authorization/guides/integrating-link-service/#integration-with-api-for-authorized-parties-issuers">}}), that yields a list of all parties the authenticated user can represent along with all roles/access packages and service/instance rights that user has been granted for each party. | ||
|
||
Dialogporten maintains a map of which roles/access packages grant rights to each resource in the resource registry, and uses that to fetch only dialogs referring to service resources that the user has some kind of access to. Which actions (read, write, etc) are not considered - any right for the given party for the given resource is sufficient to see the dialog in the dialog list. | ||
|
||
As only one request (for a given party/service resource tuple) will have to be performed within a cache TTL window, re-sorting/filtering and pagination does not require additional requests to Altinn Authorization, and can therefor be performed quickly. | ||
|
||
## Dialog details authorization | ||
|
||
For dialog details, the [PDP API]({{<relref "../../../../authorization/guides/integrating-link-service/#integration-with-pdp">}}) is utilized, allow for fine-grained authorization of the various actions and transmissions defined within the dialog. | ||
|
||
All actions and transmissions are decorated with a `IsAuthorized` flag, which indicates to the end-user system whether or not the user has access. If not, all URLs are removed. | ||
|
||
{{<notice warning>}} | ||
While Dialogporten indicates that the action is unauthorized, and removes the URLs, the endpoint should still always perform authentication/authorization on incoming requests and not rely on Dialogporten simply obscuring access to the endpoints | ||
{{</notice>}} | ||
|
||
|
||
{{<children />}} | ||
|
Oops, something went wrong.