@byu-oit-sdk/middleware-token
v0.7.6
Published
Token authorization middleware for the BYU OIT SDK
Downloads
1,217
Readme
@byu-oit-sdk/middleware-token
Usage
This package facilitates adding an access token from the configured credential provider. The location of the access token on the request depends on which credential provider is used.
| Credential Provider | Location default |
|---------------------|-----------------------------|
| Client Credentials | Authorization header |
| Authorization Code | Authorization header |
| API Key | x-api-client-token
header |
The access token may be located in the header
or querystring
(only API Key Provider). The default authorization
header prefix is Bearer
.