Skip to content

Commit

Permalink
ignore casing in application properties
Browse files Browse the repository at this point in the history
  • Loading branch information
farrell-m committed Jun 13, 2024
1 parent 54e93d2 commit 3a18c55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package uk.gov.laa.ccms.springboot.auth;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
* Holds a list of uris available for a given role.
*
* @param name the name of the role
* @param uris the uris that are accessible to clients that have this role
*/
@JsonFormat(with = JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
public record AuthorizedRole(String name, String[] uris) {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package uk.gov.laa.ccms.springboot.auth;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Set;

/**
Expand All @@ -10,4 +11,5 @@
* @param token the access token designated to the client
* @param roles the roles designated to the client, which determine level of access
*/
@JsonFormat(with = JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
public record ClientCredential(String name, String token, Set<String> roles) {}

0 comments on commit 3a18c55

Please sign in to comment.