Only return client_secret for confidential clients

pull/30329/head
Emelia Smith 10 months ago
parent 190700578b
commit ff7dd02d04
No known key found for this signature in database

@ -8,6 +8,6 @@ class REST::CredentialApplicationSerializer < REST::ApplicationSerializer
end
def client_secret
object.secret
object.secret if object.confidential?
end
end

Loading…
Cancel
Save