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 {
12
12
public static BasicAuthenticationDetailsProvider getAuthenticationDetailsProvider () throws IOException {
13
13
if (isRunningInOKE ()) return InstancePrincipalsAuthenticationDetailsProvider .builder ().build ();
14
14
else return new ConfigFileAuthenticationDetailsProvider (
15
- AIApplication .OCICONFIG_FILE , AIApplication .OCICONFIG_PROFILE );
15
+ "~/.oci/config" , "DEFAULT" );
16
+ // AIApplication.OCICONFIG_FILE, AIApplication.OCICONFIG_PROFILE);
16
17
}
17
18
18
19
private static boolean isRunningInOKE () {
19
- return false ; //System.getenv("OCI_RESOURCE_PRINCIPAL_VERSION") != null;
20
+ return true ; //System.getenv("OCI_RESOURCE_PRINCIPAL_VERSION") != null;
20
21
}
21
22
22
23
}
You can’t perform that action at this time.
0 commit comments