mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Doc tweaks
This commit is contained in:
+6
-5
@@ -69,13 +69,14 @@ A JWT token contains, in encrypted format:
|
|||||||
|
|
||||||
Use the [GOV.UK Notify](https://www.notifications.service.gov.uk/) web application to find your service ID and create API keys.
|
Use the [GOV.UK Notify](https://www.notifications.service.gov.uk/) web application to find your service ID and create API keys.
|
||||||
|
|
||||||
See [authentication.py](https://github.com/alphagov/notifications-python-client/blob/master/notifications_python_client/authentication.py) in the GOV.UK Notify Python client library for sample code to encode and decode JWT tokens.
|
|
||||||
|
|
||||||
|
|
||||||
**Important:** API keys are secret, so save them somewhere safe. Do not commit API keys to public source code repositories.
|
**Important:** API keys are secret, so save them somewhere safe. Do not commit API keys to public source code repositories.
|
||||||
|
|
||||||
|
For examples of how to encode and decode JWT tokens, see [authentication.py](https://github.com/alphagov/notifications-python-client/blob/master/notifications_python_client/authentication.py) in the GOV.UK Notify Python client library.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
JWT tokens
|
JWT tokens
|
||||||
-----------------------------------------
|
------------
|
||||||
|
|
||||||
JWT tokens have a series of standard and application-specific claims.
|
JWT tokens have a series of standard and application-specific claims.
|
||||||
|
|
||||||
@@ -97,7 +98,7 @@ GOV.UK Notify application-specific claims:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
GOV.UK Notify API tokens sign the:
|
The GOV.UK Notify API tokens sign the:
|
||||||
* request being made
|
* request being made
|
||||||
* payload (for POST requests)
|
* payload (for POST requests)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user