fixed pluralization of post logout URIs in data API services
parent
d91da77a31
commit
d88cc2ec8e
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.mitre.openid.connect.service.impl;
|
package org.mitre.openid.connect.service.impl;
|
||||||
|
|
||||||
|
import com.google.common.collect.Sets;
|
||||||
import com.google.gson.stream.JsonReader;
|
import com.google.gson.stream.JsonReader;
|
||||||
import com.google.gson.stream.JsonToken;
|
import com.google.gson.stream.JsonToken;
|
||||||
import com.google.gson.stream.JsonWriter;
|
import com.google.gson.stream.JsonWriter;
|
||||||
|
@ -675,7 +676,8 @@ public class MITREidDataService_1_0 extends MITREidDataService_1_X {
|
||||||
} else if (name.equals("initiateLoginUri")) {
|
} else if (name.equals("initiateLoginUri")) {
|
||||||
client.setInitiateLoginUri(reader.nextString());
|
client.setInitiateLoginUri(reader.nextString());
|
||||||
} else if (name.equals("postLogoutRedirectUri")) {
|
} else if (name.equals("postLogoutRedirectUri")) {
|
||||||
client.setPostLogoutRedirectUri(reader.nextString());
|
HashSet<String> postLogoutUris = Sets.newHashSet(reader.nextString());
|
||||||
|
client.setPostLogoutRedirectUris(postLogoutUris);
|
||||||
} else if (name.equals("requestUris")) {
|
} else if (name.equals("requestUris")) {
|
||||||
Set<String> requestUris = readSet(reader);
|
Set<String> requestUris = readSet(reader);
|
||||||
client.setRequestUris(requestUris);
|
client.setRequestUris(requestUris);
|
||||||
|
|
|
@ -62,6 +62,7 @@ import org.springframework.security.oauth2.provider.OAuth2Authentication;
|
||||||
import org.springframework.security.oauth2.provider.OAuth2Request;
|
import org.springframework.security.oauth2.provider.OAuth2Request;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.google.common.collect.Sets;
|
||||||
import com.google.gson.stream.JsonReader;
|
import com.google.gson.stream.JsonReader;
|
||||||
import com.google.gson.stream.JsonToken;
|
import com.google.gson.stream.JsonToken;
|
||||||
import com.google.gson.stream.JsonWriter;
|
import com.google.gson.stream.JsonWriter;
|
||||||
|
@ -687,7 +688,8 @@ public class MITREidDataService_1_1 extends MITREidDataService_1_X {
|
||||||
} else if (name.equals("initiateLoginUri")) {
|
} else if (name.equals("initiateLoginUri")) {
|
||||||
client.setInitiateLoginUri(reader.nextString());
|
client.setInitiateLoginUri(reader.nextString());
|
||||||
} else if (name.equals("postLogoutRedirectUri")) {
|
} else if (name.equals("postLogoutRedirectUri")) {
|
||||||
client.setPostLogoutRedirectUri(reader.nextString());
|
HashSet<String> postLogoutUris = Sets.newHashSet(reader.nextString());
|
||||||
|
client.setPostLogoutRedirectUris(postLogoutUris);
|
||||||
} else if (name.equals("requestUris")) {
|
} else if (name.equals("requestUris")) {
|
||||||
Set<String> requestUris = readSet(reader);
|
Set<String> requestUris = readSet(reader);
|
||||||
client.setRequestUris(requestUris);
|
client.setRequestUris(requestUris);
|
||||||
|
|
|
@ -62,6 +62,7 @@ import org.springframework.security.oauth2.provider.OAuth2Authentication;
|
||||||
import org.springframework.security.oauth2.provider.OAuth2Request;
|
import org.springframework.security.oauth2.provider.OAuth2Request;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.google.common.collect.Sets;
|
||||||
import com.google.gson.stream.JsonReader;
|
import com.google.gson.stream.JsonReader;
|
||||||
import com.google.gson.stream.JsonToken;
|
import com.google.gson.stream.JsonToken;
|
||||||
import com.google.gson.stream.JsonWriter;
|
import com.google.gson.stream.JsonWriter;
|
||||||
|
@ -398,7 +399,8 @@ public class MITREidDataService_1_2 extends MITREidDataService_1_X {
|
||||||
writer.name("defaultACRValues");
|
writer.name("defaultACRValues");
|
||||||
writeNullSafeArray(writer, client.getDefaultACRvalues());
|
writeNullSafeArray(writer, client.getDefaultACRvalues());
|
||||||
writer.name("intitateLoginUri").value(client.getInitiateLoginUri());
|
writer.name("intitateLoginUri").value(client.getInitiateLoginUri());
|
||||||
writer.name("postLogoutRedirectUri").value(client.getPostLogoutRedirectUris());
|
writer.name("postLogoutRedirectUri");
|
||||||
|
writeNullSafeArray(writer, client.getPostLogoutRedirectUris());
|
||||||
writer.name("requestUris");
|
writer.name("requestUris");
|
||||||
writeNullSafeArray(writer, client.getRequestUris());
|
writeNullSafeArray(writer, client.getRequestUris());
|
||||||
writer.name("description").value(client.getClientDescription());
|
writer.name("description").value(client.getClientDescription());
|
||||||
|
@ -1022,7 +1024,8 @@ public class MITREidDataService_1_2 extends MITREidDataService_1_X {
|
||||||
} else if (name.equals("initiateLoginUri")) {
|
} else if (name.equals("initiateLoginUri")) {
|
||||||
client.setInitiateLoginUri(reader.nextString());
|
client.setInitiateLoginUri(reader.nextString());
|
||||||
} else if (name.equals("postLogoutRedirectUri")) {
|
} else if (name.equals("postLogoutRedirectUri")) {
|
||||||
client.setPostLogoutRedirectUris(reader.nextString());
|
HashSet<String> postLogoutUris = Sets.newHashSet(reader.nextString());
|
||||||
|
client.setPostLogoutRedirectUris(postLogoutUris);
|
||||||
} else if (name.equals("requestUris")) {
|
} else if (name.equals("requestUris")) {
|
||||||
Set<String> requestUris = readSet(reader);
|
Set<String> requestUris = readSet(reader);
|
||||||
client.setRequestUris(requestUris);
|
client.setRequestUris(requestUris);
|
||||||
|
|
Loading…
Reference in New Issue