OAuth2::ClientRegistration
Inherits Reference < Object
Shared service for OAuth client registration.
Supports provisional storage where clients are only persisted to the database after first authorization.
Constants
OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob"
out-of-band redirect uri
Class methods
buffer_size
Sourcebuffer_size=(buffer_size : Int32)
Sourcepersist(client : Provider::Client) : Provider::Client
Persists client to database.
Removes the client from the provisional buffer and saves it to the database if it's a new record.
Registers a new OAuth client.
Validates input, creates a new client instance, and stores it
in the provisional buffer. The client is not persisted to the
database until persist is called.
remove_provisional(client : Provider::Client) : Nil
Removes client from provisional storage without persisting.