return required client_secret_expires_at in openid connect dynamic registration response

This commit is contained in:
Jonne Haß 2020-01-16 16:32:32 +01:00
parent 1bf05e7921
commit 3abf6b6f41

View file

@ -44,6 +44,12 @@ module Api
redirect_uris.sort!
end
def as_json(opts={})
data = super
data[:client_secret_expires_at] = 0
data
end
def setup
self.client_id = SecureRandom.hex(16)
self.client_secret = SecureRandom.hex(32)