Class: AtprotoAuth::Storage::KeyBuilder
- Inherits:
-
Object
- Object
- AtprotoAuth::Storage::KeyBuilder
- Defined in:
- lib/atproto_auth/storage/key_builder.rb
Overview
Utility for building storage keys with correct format
Constant Summary collapse
- NAMESPACE_SEPARATOR =
":"
- NAMESPACE_PREFIX =
"atproto"
Class Method Summary collapse
- .dpop_key(client_id) ⇒ Object
- .lock_key(namespace, id) ⇒ Object
- .nonce_key(server_url) ⇒ Object
- .session_key(id) ⇒ Object
- .state_key(token) ⇒ Object
Class Method Details
.dpop_key(client_id) ⇒ Object
23 24 25 |
# File 'lib/atproto_auth/storage/key_builder.rb', line 23 def dpop_key(client_id) build_key("dpop", client_id) end |
.lock_key(namespace, id) ⇒ Object
27 28 29 |
# File 'lib/atproto_auth/storage/key_builder.rb', line 27 def lock_key(namespace, id) build_key("lock", namespace, id) end |
.nonce_key(server_url) ⇒ Object
19 20 21 |
# File 'lib/atproto_auth/storage/key_builder.rb', line 19 def nonce_key(server_url) build_key("nonce", server_url) end |
.session_key(id) ⇒ Object
11 12 13 |
# File 'lib/atproto_auth/storage/key_builder.rb', line 11 def session_key(id) build_key("session", id) end |
.state_key(token) ⇒ Object
15 16 17 |
# File 'lib/atproto_auth/storage/key_builder.rb', line 15 def state_key(token) build_key("state", token) end |