mirror of https://github.com/mastodon/mastodon
Merge bf8d132557
into 1959365c2f
This commit is contained in:
commit
ba8e4c2ff6
|
@ -170,7 +170,11 @@ Doorkeeper.configure do
|
|||
# http://tools.ietf.org/html/rfc6819#section-4.4.3
|
||||
#
|
||||
|
||||
grant_flows %w(authorization_code password client_credentials)
|
||||
if Devise.ldap_authentication || Devise.pam_authentication
|
||||
grant_flows %w(authorization_code client_credentials password)
|
||||
else
|
||||
grant_flows %w(authorization_code client_credentials)
|
||||
end
|
||||
|
||||
# Under some circumstances you might want to have applications auto-approved,
|
||||
# so that the user skips the authorization step.
|
||||
|
|
Loading…
Reference in New Issue