mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 19:03:41 +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
|
end
|
||||||
|
|
||||||
def client_secret
|
def client_secret
|
||||||
object.secret
|
object.secret if object.confidential?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Added for future forwards compatibility when we may decide to expire OAuth
|
# Added for future forwards compatibility when we may decide to expire OAuth
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user