File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
java-ai/src/main/java/oracleai/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ public class AuthProvider {
1212 public static BasicAuthenticationDetailsProvider getAuthenticationDetailsProvider () throws IOException {
1313 if (isRunningInOKE ()) return InstancePrincipalsAuthenticationDetailsProvider .builder ().build ();
1414 else return new ConfigFileAuthenticationDetailsProvider (
15- AIApplication .OCICONFIG_FILE , AIApplication .OCICONFIG_PROFILE );
15+ "~/.oci/config" , "DEFAULT" );
16+ // AIApplication.OCICONFIG_FILE, AIApplication.OCICONFIG_PROFILE);
1617 }
1718
1819 private static boolean isRunningInOKE () {
19- return false ; //System.getenv("OCI_RESOURCE_PRINCIPAL_VERSION") != null;
20+ return true ; //System.getenv("OCI_RESOURCE_PRINCIPAL_VERSION") != null;
2021 }
2122
2223}
You can’t perform that action at this time.
0 commit comments