CAC/PIV card users can open a browser to to DTP and and authenticate automatically via JWT Access Token for OAuth 2.0. To To set this up, follow the directions below.
...
Configuring Usernames
When enabled, DTP uses DTP uses mappings defined in oidc.json to extract usernames from JWT access tokens. Open the Open the oidc.json file located in the <DTP_DATA_DIR>/conf directory to configure usernames.
...
The default value for the claimMappings > username
attribute is preferred_username
. Change this value if the username in the JWT access token is mapped to a different element name. The other attributes in this file are ignored when authentication via JWT access token is enabled, so you do not need to set them.
Save your your changes and restart DTP services restart DTP services after configuring the file.
Using APIs in JWT Token Mode
To access access DTP or or Enterprise Pack APIs when when DTP is is in JWT token mode, pass an access token to the API endpoint in the request header using the Authorization property. The The token is passed using the following format:
...