README.md 633 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
JWT Token issuer based on information from Dataporten. It provides token based user ID, groups and feide ID. Example usage

```
curl -H 'Authorization: Bearer <access_token>' https://jwt.example.no/
```


Output looks like

```
{
  "aud": "daa8f3c8-422f-abcd-a045-06238997557",
  "exp": 1488403630,
  "iat": 1488374830,
  "iss": "https://jwt.example.no",
  "principals": [
    "fc:app:daa8f3c8-422f-abcd-a045-06238997557",
    "fc:org:example.no:uid:test",
    "fc:org:example.no",
    "fc:org:example.no:unit:depta",
    "fc:adhoc:sdskjf-de73-4344-ccc4-58103cedef29",
  ],
  "sub": "fc:uid:daa8f3c8-422f-abcd-a045-06238997557"
}
```