TokenExchange
The RFC 8693 token exchange and its caching provider.
Attributes
- Source
- TokenExchange.scala
- Graph
-
- Supertypes
- Self type
-
TokenExchange.type
Members list
Value members
Concrete methods
rfc8693 behind a CachingAccessTokenProvider.
One exchange per call: read the identity token, post it, parse the reply. Each subject token is registered with KnownSecrets (through a TokenGenerations) before it is posted, and clientId as an identifier, so an endpoint's reply quoting either is scrubbed. The exchanged access token is registered by the client that sends it.
One exchange per call: read the identity token, post it, parse the reply. Each subject token is registered with KnownSecrets (through a TokenGenerations) before it is posted, and clientId as an identifier, so an endpoint's reply quoting either is scrubbed. The exchanged access token is registered by the client that sends it.
Attributes
- Source
- TokenExchange.scala
Concrete fields
The lifetime assumed for a token whose reply has no expires_in (RFC 6749 makes it optional) and which is not a JWT carrying an exp claim: short, so a token that in fact lives less is not used for long after it has expired - and a 401 refreshes it in any case.
The lifetime assumed for a token whose reply has no expires_in (RFC 6749 makes it optional) and which is not a JWT carrying an exp claim: short, so a token that in fact lives less is not used for long after it has expired - and a 401 refreshes it in any case.
Attributes
- Source
- TokenExchange.scala
Attributes
- Source
- TokenExchange.scala
The longest lifetime a token is believed to have, whatever the endpoint's expires_in says: a reply claiming more (1e30, say) is clamped to this, so a buggy or hostile endpoint cannot make a token outlive any sensible rotation or overflow the arithmetic.
The longest lifetime a token is believed to have, whatever the endpoint's expires_in says: a reply claiming more (1e30, say) is clamped to this, so a buggy or hostile endpoint cannot make a token outlive any sensible rotation or overflow the arithmetic.
Attributes
- Source
- TokenExchange.scala
