Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Rack::OAuth2
✓ require 'rack/oauth2'
Create an OAuth 2.0 client and generate an authorization URI.
require 'rack/oauth2'
# Example: Create an OAuth 2.0 client
client = Rack::OAuth2::Client.new(
identifier: 'client_id',
secret: 'client_secret',
redirect_uri: 'http://localhost/callback'
)
# Generate authorization URI
auth_uri = client.authorization_uri(
response_type: :code,
scope: 'openid email'
)
puts auth_uri
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.