mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 10:53:39 +00:00
Only return client_secret for confidential clients
This commit is contained in:
parent
b21e7d8fdb
commit
fad8f7b148
|
|
@ -8,7 +8,7 @@ class REST::CredentialApplicationSerializer < REST::ApplicationSerializer
|
|||
end
|
||||
|
||||
def client_secret
|
||||
object.secret
|
||||
object.secret if object.confidential?
|
||||
end
|
||||
|
||||
# Added for future forwards compatibility when we may decide to expire OAuth
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user