Commit 21b9f3a4 authored by Gurvinder Singh's avatar Gurvinder Singh
Browse files

added Readme with basic usage

parent b1fd3ca0
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"
}
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment