Class: Doorkeeper::Config

Inherits:
Object
  • Object
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_tokenObject (readonly)

Returns the value of attribute reuse_access_token


199
200
201
# File 'lib/doorkeeper/config.rb', line 199

def reuse_access_token
  @reuse_access_token
end

Instance Method Details

#access_token_methodsObject


229
230
231
# File 'lib/doorkeeper/config.rb', line 229

def access_token_methods
  @access_token_methods ||= [:from_bearer_authorization, :from_access_token_param, :from_bearer_param]
end

#authorization_response_typesObject


237
238
239
# File 'lib/doorkeeper/config.rb', line 237

def authorization_response_types
  @authorization_response_types ||= calculate_authorization_response_types
end

#client_credentials_methodsObject


225
226
227
# File 'lib/doorkeeper/config.rb', line 225

def client_credentials_methods
  @client_credentials ||= [:from_basic, :from_params]
end

#confirm_application_owner?Boolean

Returns:

  • (Boolean)

209
210
211
# File 'lib/doorkeeper/config.rb', line 209

def confirm_application_owner?
  !!@confirm_application_owner
end

#default_scopesObject


213
214
215
# File 'lib/doorkeeper/config.rb', line 213

def default_scopes
  @default_scopes ||= OAuth::Scopes.new
end

#enable_application_owner?Boolean

Returns:

  • (Boolean)

205
206
207
# File 'lib/doorkeeper/config.rb', line 205

def enable_application_owner?
  !!@enable_application_owner
end

#optional_scopesObject


217
218
219
# File 'lib/doorkeeper/config.rb', line 217

def optional_scopes
  @optional_scopes ||= OAuth::Scopes.new
end

#realmObject


233
234
235
# File 'lib/doorkeeper/config.rb', line 233

def realm
  @realm ||= 'Doorkeeper'
end

#refresh_token_enabled?Boolean

Returns:

  • (Boolean)

201
202
203
# File 'lib/doorkeeper/config.rb', line 201

def refresh_token_enabled?
  !!@refresh_token_enabled
end

#scopesObject


221
222
223
# File 'lib/doorkeeper/config.rb', line 221

def scopes
  @scopes ||= default_scopes + optional_scopes
end

#token_grant_typesObject


241
242
243
# File 'lib/doorkeeper/config.rb', line 241

def token_grant_types
  @token_grant_types ||= calculate_token_grant_types
end