Struct fxa_client::ScopedKey
source · Expand description
A cryptograpic key associated with an OAuth scope.
Some OAuth scopes have a corresponding client-side encryption key that is required in order to access protected data. This struct represents such key material in a format compatible with the common “JWK” standard.
Fields§
§kty: String
The type of key.
In practice for FxA, this will always be string string “oct” (short for “octal”) to represent a raw symmetric key.
scope: String
The OAuth scope with which this key is associated.
k: String
The key material, as base64-url-encoded bytes.
⚠️ Warning: the value of this field should never be revealed outside of the application. For example, it should never to sent to a server or logged in a log file.
kid: String
An opaque unique identifier for this key.
Unlike the k
field, this value is not secret and may be revealed to the server.