Skip to content

Commit

Permalink
auth/maskinporten: describe resource indicator for texas
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Nov 25, 2024
1 parent 779e06e commit 1191c7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/auth/maskinporten/how-to/consume.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ To acquire a token, you can either:
{% set target_description = 'Whitespace-separated list of scopes that you want in the issued token from Maskinporten.' %}
{% include 'auth/partials/token.md' %}

If the API provider requires the use of an [audience-restricted token](https://docs.digdir.no/maskinporten_func_audience_restricted_tokens.html), you must also include the following parameter in the request:

| Parameter | Example Value | Description |
|:-------------|:------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------|
| `resource` | `https://some-provider.example/api` | Target audience for the token returned by Maskinporten. The exact value is defined by the API provider and exchanged out-of-band. |

### Acquire tokens manually

To acquire a token from Maskinporten, you will need to create a [client assertion](../../explanations/README.md#client-assertion).
Expand Down

0 comments on commit 1191c7c

Please sign in to comment.