Class AllowedUrisConfig

java.lang.Object
com.linecorp.centraldogma.server.auth.AllowedUrisConfig

public final class AllowedUrisConfig extends Object
Configuration for allowed redirect URIs.
  • Constructor Details

    • AllowedUrisConfig

      public AllowedUrisConfig(List<URI> allowedUris, boolean allowAllUris)
      Creates a new instance.
  • Method Details

    • of

      public static AllowedUrisConfig of(@Nullable CorsConfig corsConfig)
      Creates a new instance from the specified CorsConfig.
    • allowedUris

      public List<URI> allowedUris()
      Returns the list of allowed redirect URIs.
    • allowAllUris

      public boolean allowAllUris()
      Returns whether all redirect URIs are allowed.
    • isAllowedRedirectUri

      public boolean isAllowedRedirectUri(@Nullable String returnTo)
      Returns true if the specified returnTo is allowed.