Skip to content

Commit

Permalink
SHIBUI-2380
Browse files Browse the repository at this point in the history
checking for oidc param without caring about case
  • Loading branch information
chasegawa committed Sep 27, 2022
1 parent 98767d8 commit c9b1f2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MetadataSourcesUiDefinitionController {

@GetMapping
ResponseEntity<?> getUiDefinitionJsonSchema(@RequestParam(defaultValue = "saml") String protocol) {
URL url = protocol.equals("oidc") ? oidcJsonSchemaLocation.url : samlJsonSchemaLocation.url
URL url = protocol.equalsIgnoreCase("oidc") ? oidcJsonSchemaLocation.url : samlJsonSchemaLocation.url
try {
def parsedJson = jacksonObjectMapper.readValue(url, Map)
jsonSchemaBuilderService.hideServiceEnabledFromNonAdmins(parsedJson)
Expand Down

0 comments on commit c9b1f2d

Please sign in to comment.