Skip to content

Commit

Permalink
chore(experimentalIdentityAndAuth): reorganize http auth module const…
Browse files Browse the repository at this point in the history
…ants (#942)
  • Loading branch information
Steven Yuan authored Sep 18, 2023
1 parent abdf6ce commit 22c2cc7
Showing 1 changed file with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@
public final class AuthUtils {
public static final String HTTP_AUTH_FOLDER = "auth";

public static final String HTTP_AUTH_SCHEME_PROVIDER_MODULE = "httpAuthSchemeProvider";
public static final String HTTP_AUTH_SCHEME_PROVIDER_MODULE =
Paths.get(".", CodegenUtils.SOURCE_FOLDER, HTTP_AUTH_FOLDER, "httpAuthSchemeProvider").toString();

public static final String HTTP_AUTH_SCHEME_PROVIDER_FILE =
HTTP_AUTH_SCHEME_PROVIDER_MODULE + ".ts";

public static final String HTTP_AUTH_SCHEME_PROVIDER_PATH =
Paths.get(".", CodegenUtils.SOURCE_FOLDER, HTTP_AUTH_FOLDER, HTTP_AUTH_SCHEME_PROVIDER_FILE).toString();
public static final String HTTP_AUTH_SCHEME_PROVIDER_PATH = HTTP_AUTH_SCHEME_PROVIDER_MODULE + ".ts";

public static final Dependency AUTH_HTTP_PROVIDER_DEPENDENCY = new Dependency() {
@Override
public String getPackageName() {
return Paths.get(
".", CodegenUtils.SOURCE_FOLDER,
HTTP_AUTH_FOLDER, HTTP_AUTH_SCHEME_PROVIDER_MODULE
).toString();
return HTTP_AUTH_SCHEME_PROVIDER_MODULE;
}

@Override
Expand All @@ -51,21 +45,15 @@ public List<SymbolDependency> getDependencies() {
}
};

public static final String HTTP_AUTH_SCHEME_EXTENSION_MODULE = "httpAuthExtensionConfiguration";

public static final String HTTP_AUTH_SCHEME_EXTENSION_FILE =
HTTP_AUTH_SCHEME_EXTENSION_MODULE + ".ts";
public static final String HTTP_AUTH_SCHEME_EXTENSION_MODULE =
Paths.get(".", CodegenUtils.SOURCE_FOLDER, HTTP_AUTH_FOLDER, "httpAuthExtensionConfiguration").toString();

public static final String HTTP_AUTH_SCHEME_EXTENSION_PATH =
Paths.get(".", CodegenUtils.SOURCE_FOLDER, HTTP_AUTH_FOLDER, HTTP_AUTH_SCHEME_EXTENSION_FILE).toString();
public static final String HTTP_AUTH_SCHEME_EXTENSION_PATH = HTTP_AUTH_SCHEME_EXTENSION_MODULE + ".ts";

public static final Dependency AUTH_HTTP_EXTENSION_DEPENDENCY = new Dependency() {
@Override
public String getPackageName() {
return Paths.get(
".", CodegenUtils.SOURCE_FOLDER,
HTTP_AUTH_FOLDER, HTTP_AUTH_SCHEME_EXTENSION_MODULE
).toString();
return HTTP_AUTH_SCHEME_EXTENSION_MODULE;
}

@Override
Expand Down

0 comments on commit 22c2cc7

Please sign in to comment.