diff --git a/lib/latch/client_assertion.ex b/lib/latch/client_assertion.ex index 5b2f00a..18d9575 100644 --- a/lib/latch/client_assertion.ex +++ b/lib/latch/client_assertion.ex @@ -22,7 +22,7 @@ defmodule Latch.ClientAssertion do Signs a client assertion JWT. ## Arguments - - `jwk` - the client's private JOSE JWK map + - `jwk` - the client's private plain JWK map - `client_id` - used as both `iss` and `sub` - `audience` - the authorization server's `issuer` URL diff --git a/lib/latch/config.ex b/lib/latch/config.ex index 32d1351..c7d133e 100644 --- a/lib/latch/config.ex +++ b/lib/latch/config.ex @@ -9,7 +9,7 @@ defmodule Latch.Config do * `:redirect_uri` - the OAuth callback URL * `:scope` - the requsted scopes * `:client_id` - the URL of the published client metadata document - * `:signing_key` - the ES256 `JOSE.JWK` private key for `private_key_jwt` as string + * `:signing_key` - the JSON-encoded ES256 private JWK for `private_key_jwt` as string * `:client_name` - shown on the authorization consent screen * `:client_uri` - client home page """ diff --git a/lib/latch/dpop.ex b/lib/latch/dpop.ex index 7558247..ff10d67 100644 --- a/lib/latch/dpop.ex +++ b/lib/latch/dpop.ex @@ -10,7 +10,7 @@ defmodule Latch.DPoP do @jwt_type "dpop+jwt" @doc """ - Generates a new ES256 (P-256) key pair as a JOSE JWK map. + Generates a new ES256 (P-256) key pair as a plain RFC 7517 JWK map. """ @spec generate_key() :: map() def generate_key do @@ -22,7 +22,7 @@ defmodule Latch.DPoP do @doc """ Signs a DPoP proof JWT for an HTTP request. ## Arguments - - `jwk` — private JOSE JWK map for this OAuth session + - `jwk` — private plain JWK map for this OAuth session - `method` — HTTP method (e.g. `"POST"`) - `url` — request URL; query string is stripped for `htu` per atproto ## Options