return required client_secret_expires_at in openid connect dynamic registration response
This commit is contained in:
parent
1bf05e7921
commit
3abf6b6f41
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue