Clean up labels on development application form (#32116)
This commit is contained in:
parent
b7bb850efd
commit
36f9c96812
3 changed files with 10 additions and 11 deletions
|
@ -28,6 +28,8 @@ class SessionActivation < ApplicationRecord
|
|||
|
||||
before_create :assign_access_token
|
||||
|
||||
DEFAULT_SCOPES = %w(read write follow).freeze
|
||||
|
||||
class << self
|
||||
def active?(id)
|
||||
id && exists?(session_id: id)
|
||||
|
@ -64,7 +66,7 @@ class SessionActivation < ApplicationRecord
|
|||
{
|
||||
application_id: Doorkeeper::Application.find_by(superapp: true)&.id,
|
||||
resource_owner_id: user_id,
|
||||
scopes: 'read write follow',
|
||||
scopes: DEFAULT_SCOPES.join(' '),
|
||||
expires_in: Doorkeeper.configuration.access_token_expires_in,
|
||||
use_refresh_token: Doorkeeper.configuration.refresh_token_enabled?,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue