Skip to content

JwtInterceptor

Richard edited this page Jan 6, 2018 · 2 revisions

Description

The JwtInterceptor intercepts HTTP requests and inserts an Authorization header field into the request before it is sent to its target. The Authorization header field is added as

Authorization: <type> <token>

where:

  • <type> is configurable using the authScheme parameter and is set by default to 'Bearer'. Other schemes may be used such as 'Basic' or 'Digest'.
  • <token> is the string result obtained from observing the result of calling tokenGetter(). This is the JWT token that the service will authorise the user using.
Clone this wiki locally