Class OAuthMockData

java.lang.Object
ch.admin.bit.jeap.oauth.mock.server.config.OAuthMockData

@Configuration @ConfigurationProperties(prefix="oauth-mock-data") @Validated public class OAuthMockData extends Object
Actual data to be used by the mock server
  • Constructor Details

    • OAuthMockData

      public OAuthMockData()
  • Method Details

    • clientsById

      @Bean public Map<String,org.springframework.security.oauth2.server.authorization.client.RegisteredClient> clientsById()
    • usersById

      @Bean public Map<String,OAuthMockData.UserData> usersById()
    • getClients

      public List<ClientData> getClients()
    • getUsers

      public List<OAuthMockData.UserData> getUsers()
    • getRolesPruningLimit

      public int getRolesPruningLimit()
      Defines the maximum number of characters allowed for the `userroles` and `bproles` claims in a token. If the combined length exceeds this limit, these claims will be pruned. Optional. Default: 8000 characters.
    • setClients

      public void setClients(List<ClientData> clients)
    • setUsers

      public void setUsers(List<OAuthMockData.UserData> users)
    • setRolesPruningLimit

      public void setRolesPruningLimit(int rolesPruningLimit)
      Defines the maximum number of characters allowed for the `userroles` and `bproles` claims in a token. If the combined length exceeds this limit, these claims will be pruned. Optional. Default: 8000 characters.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object