|
|
|
@ -62,6 +62,7 @@ import org.springframework.security.oauth2.provider.OAuth2Authentication;
|
|
|
|
|
import org.springframework.security.oauth2.provider.OAuth2Request; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import com.google.common.collect.Sets; |
|
|
|
|
import com.google.gson.stream.JsonReader; |
|
|
|
|
import com.google.gson.stream.JsonToken; |
|
|
|
|
import com.google.gson.stream.JsonWriter; |
|
|
|
@ -398,7 +399,8 @@ public class MITREidDataService_1_2 extends MITREidDataService_1_X {
|
|
|
|
|
writer.name("defaultACRValues"); |
|
|
|
|
writeNullSafeArray(writer, client.getDefaultACRvalues()); |
|
|
|
|
writer.name("intitateLoginUri").value(client.getInitiateLoginUri()); |
|
|
|
|
writer.name("postLogoutRedirectUri").value(client.getPostLogoutRedirectUris()); |
|
|
|
|
writer.name("postLogoutRedirectUri"); |
|
|
|
|
writeNullSafeArray(writer, client.getPostLogoutRedirectUris()); |
|
|
|
|
writer.name("requestUris"); |
|
|
|
|
writeNullSafeArray(writer, client.getRequestUris()); |
|
|
|
|
writer.name("description").value(client.getClientDescription()); |
|
|
|
@ -1022,7 +1024,8 @@ public class MITREidDataService_1_2 extends MITREidDataService_1_X {
|
|
|
|
|
} else if (name.equals("initiateLoginUri")) { |
|
|
|
|
client.setInitiateLoginUri(reader.nextString()); |
|
|
|
|
} else if (name.equals("postLogoutRedirectUri")) { |
|
|
|
|
client.setPostLogoutRedirectUris(reader.nextString()); |
|
|
|
|
HashSet<String> postLogoutUris = Sets.newHashSet(reader.nextString()); |
|
|
|
|
client.setPostLogoutRedirectUris(postLogoutUris); |
|
|
|
|
} else if (name.equals("requestUris")) { |
|
|
|
|
Set<String> requestUris = readSet(reader); |
|
|
|
|
client.setRequestUris(requestUris); |
|
|
|
|