Class: Doorkeeper::Config
- Inherits:
-
Object
- Object
- Doorkeeper::Config
show all
- Extended by:
- Option
- Defined in:
- lib/doorkeeper/config.rb
Defined Under Namespace
Modules: Option
Classes: Builder
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Option
extended, option
Instance Attribute Details
#reuse_access_token ⇒ Object
Returns the value of attribute reuse_access_token.
186
187
188
|
# File 'lib/doorkeeper/config.rb', line 186
def reuse_access_token
@reuse_access_token
end
|
Instance Method Details
#access_token_methods ⇒ Object
220
221
222
|
# File 'lib/doorkeeper/config.rb', line 220
def access_token_methods
@access_token_methods ||= [:from_bearer_authorization, :from_access_token_param, :from_bearer_param]
end
|
#authorization_response_types ⇒ Object
228
229
230
|
# File 'lib/doorkeeper/config.rb', line 228
def authorization_response_types
@authorization_response_types ||= calculate_authorization_response_types
end
|
#client_credentials_methods ⇒ Object
216
217
218
|
# File 'lib/doorkeeper/config.rb', line 216
def client_credentials_methods
@client_credentials ||= [:from_basic, :from_params]
end
|
#confirm_application_owner? ⇒ Boolean
196
197
198
|
# File 'lib/doorkeeper/config.rb', line 196
def confirm_application_owner?
!!@confirm_application_owner
end
|
#default_scopes ⇒ Object
200
201
202
|
# File 'lib/doorkeeper/config.rb', line 200
def default_scopes
@default_scopes ||= OAuth::Scopes.new
end
|
#enable_application_owner? ⇒ Boolean
192
193
194
|
# File 'lib/doorkeeper/config.rb', line 192
def enable_application_owner?
!!@enable_application_owner
end
|
#optional_scopes ⇒ Object
204
205
206
|
# File 'lib/doorkeeper/config.rb', line 204
def optional_scopes
@optional_scopes ||= OAuth::Scopes.new
end
|
#orm_name ⇒ Object
212
213
214
|
# File 'lib/doorkeeper/config.rb', line 212
def orm_name
[:mongoid2, :mongoid3, :mongoid4].include?(orm) ? :mongoid : orm
end
|
#realm ⇒ Object
224
225
226
|
# File 'lib/doorkeeper/config.rb', line 224
def realm
@realm ||= 'Doorkeeper'
end
|
#refresh_token_enabled? ⇒ Boolean
188
189
190
|
# File 'lib/doorkeeper/config.rb', line 188
def refresh_token_enabled?
!!@refresh_token_enabled
end
|
#scopes ⇒ Object
208
209
210
|
# File 'lib/doorkeeper/config.rb', line 208
def scopes
@scopes ||= default_scopes + optional_scopes
end
|
#token_grant_types ⇒ Object
232
233
234
|
# File 'lib/doorkeeper/config.rb', line 232
def token_grant_types
@token_grant_types ||= calculate_token_grant_types
end
|