Module: AtprotoAuth
- Defined in:
- lib/atproto_auth.rb,
lib/atproto_auth/par.rb,
lib/atproto_auth/pkce.rb,
lib/atproto_auth/state.rb,
lib/atproto_auth/client.rb,
lib/atproto_auth/errors.rb,
lib/atproto_auth/version.rb,
lib/atproto_auth/identity.rb,
lib/atproto_auth/encryption.rb,
lib/atproto_auth/par/client.rb,
lib/atproto_auth/dpop/client.rb,
lib/atproto_auth/http_client.rb,
lib/atproto_auth/par/request.rb,
lib/atproto_auth/identity/did.rb,
lib/atproto_auth/par/response.rb,
lib/atproto_auth/configuration.rb,
lib/atproto_auth/state/session.rb,
lib/atproto_auth/storage/redis.rb,
lib/atproto_auth/token/refresh.rb,
lib/atproto_auth/storage/memory.rb,
lib/atproto_auth/client_metadata.rb,
lib/atproto_auth/server_metadata.rb,
lib/atproto_auth/state/token_set.rb,
lib/atproto_auth/dpop/key_manager.rb,
lib/atproto_auth/identity/document.rb,
lib/atproto_auth/identity/resolver.rb,
lib/atproto_auth/storage/interface.rb,
lib/atproto_auth/dpop/nonce_manager.rb,
lib/atproto_auth/serialization/base.rb,
lib/atproto_auth/storage/key_builder.rb,
lib/atproto_auth/dpop/proof_generator.rb,
lib/atproto_auth/par/client_assertion.rb,
lib/atproto_auth/serialization/session.rb,
lib/atproto_auth/state/session_manager.rb,
lib/atproto_auth/serialization/dpop_key.rb,
lib/atproto_auth/serialization/token_set.rb,
lib/atproto_auth/serialization/stored_nonce.rb,
lib/atproto_auth/server_metadata/origin_url.rb,
lib/atproto_auth/server_metadata/resource_server.rb,
lib/atproto_auth/server_metadata/authorization_server.rb
Overview
lib/atproto_auth/encryption.rb
Defined Under Namespace
Modules: ApplicationType, DPoP, Encryption, Identity, PAR, PKCE, Serialization, ServerMetadata, State, Storage, Token Classes: Client, ClientMetadata, Configuration, ConfigurationError, Error, HttpClient, InvalidAuthorizationServer, InvalidClientMetadata, OAuthError
Constant Summary collapse
- VERSION =
"0.2.5"
Class Attribute Summary collapse
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
-
.reset_configuration! ⇒ Object
Resets the configuration to defaults Primarily used in testing.
-
.storage ⇒ Storage::Interface
Gets the configured storage backend.
Class Attribute Details
.configuration ⇒ Object
63 64 65 |
# File 'lib/atproto_auth.rb', line 63 def configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
67 68 69 70 71 |
# File 'lib/atproto_auth.rb', line 67 def configure yield(configuration) configuration.validate! configuration end |
.reset_configuration! ⇒ Object
Resets the configuration to defaults Primarily used in testing
81 82 83 |
# File 'lib/atproto_auth.rb', line 81 def reset_configuration! @configuration = Configuration.new end |
.storage ⇒ Storage::Interface
Gets the configured storage backend
75 76 77 |
# File 'lib/atproto_auth.rb', line 75 def storage configuration.storage end |