File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/org/purejava/integrations/keychain Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,20 @@ public class BitwardenAccess implements KeychainAccessProvider {
2727 private final String apiUrl = "https://api.bitwarden.com" ;
2828 private final String identityUrl = "https://identity.bitwarden.com" ;
2929 private final String APP_NAME = "Cryptomator" ;
30+ private final String envApiUrl ;
31+ private final String envIdentityUrl ;
3032
3133 public BitwardenAccess () {
3234 this .accessToken = System .getenv ("BITWARDEN_ACCESS_TOKEN" );
3335 this .boID = System .getenv ("BITWARDEN_ORGANIZATION_ID" );
3436 this .stateFile = System .getenv ("BITWARDEN_STATE_FILE" );
37+ this .envApiUrl = System .getenv ("BITWARDEN_API_URL" );
38+ this .envIdentityUrl = System .getenv ("BITWARDEN_IDENTITY_URL" );
39+
40+ if (isEnvVarValid (envApiUrl ) && isEnvVarValid (envIdentityUrl )) {
41+ this .apiUrl = envApiUrl ;
42+ this .identityUrl = envIdentityUrl ;
43+ }
3544
3645 if (isEnvVarValid (accessToken ) && isEnvVarValid (boID )) {
3746 try {
You can’t perform that action at this time.
0 commit comments