don't throw away creation time on protected resource update (oops)

pull/618/head
Justin Richer 2014-06-09 20:22:58 -04:00
parent 6df68fc97a
commit a97f3e2d65
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ public class ProtectedResourceRegistrationEndpoint {
// a client can't ask to update its own client secret to any particular value
newClient.setClientSecret(oldClient.getClientSecret());
newClient.setCreatedAt(oldClient.getCreatedAt());
// no grant types are allowed
newClient.setGrantTypes(new HashSet<String>());
newClient.setResponseTypes(new HashSet<String>());