Class: Tep::AuthOAuth2Client
- Inherits:
-
Object
- Object
- Tep::AuthOAuth2Client
- Defined in:
- lib/tep/auth_oauth2_client.rb
Instance Attribute Summary collapse
-
#allowed_caps ⇒ Object
readonly
Array of symbols (ceiling on granted caps).
-
#client_id ⇒ Object
readonly
String, opaque (e.g. “summarizer-bot”).
-
#name ⇒ Object
readonly
Human-readable display name for consent UI.
-
#redirect_uri ⇒ Object
readonly
Where to redirect with ?code=…
Instance Method Summary collapse
-
#initialize(client_id, name, redirect_uri, allowed_caps) ⇒ AuthOAuth2Client
constructor
A new instance of AuthOAuth2Client.
Constructor Details
#initialize(client_id, name, redirect_uri, allowed_caps) ⇒ AuthOAuth2Client
Returns a new instance of AuthOAuth2Client.
22 23 24 25 26 27 |
# File 'lib/tep/auth_oauth2_client.rb', line 22 def initialize(client_id, name, redirect_uri, allowed_caps) @client_id = client_id @name = name @redirect_uri = redirect_uri @allowed_caps = allowed_caps end |
Instance Attribute Details
#allowed_caps ⇒ Object (readonly)
Array of symbols (ceiling on granted caps)
20 21 22 |
# File 'lib/tep/auth_oauth2_client.rb', line 20 def allowed_caps @allowed_caps end |
#client_id ⇒ Object (readonly)
String, opaque (e.g. “summarizer-bot”)
17 18 19 |
# File 'lib/tep/auth_oauth2_client.rb', line 17 def client_id @client_id end |
#name ⇒ Object (readonly)
Human-readable display name for consent UI
18 19 20 |
# File 'lib/tep/auth_oauth2_client.rb', line 18 def name @name end |
#redirect_uri ⇒ Object (readonly)
Where to redirect with ?code=… after consent
19 20 21 |
# File 'lib/tep/auth_oauth2_client.rb', line 19 def redirect_uri @redirect_uri end |