Skip to content

Commit

Permalink
Forward the arguments as is
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tanner committed Jan 26, 2021
1 parent e332835 commit 63b8809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,14 @@ mkdir -p "${PREFIX}/bin"
# Create withokta command
cat <<EOF >"${PREFIX}/bin/withokta"
#!/bin/bash
shift;
shift;
if [ "$1" == "logout" ]
then
command="logout"
fi
if [ -n "\$https_proxy" ]; then
readonly URI_REGEX='^(([^:/?#]+):)?(//((([^:/?#]+)@)?([^:/?#]+)(:([0-9]+))?))?(/([^?#]*))(\?([^#]*))?(#(.*))?'
[[ \$https_proxy =~ \${URI_REGEX} ]] && PROXY_CONFIG="-Dhttps.proxyHost=\${BASH_REMATCH[7]} -Dhttps.proxyPort=\${BASH_REMATCH[9]}"
fi
java \${PROXY_CONFIG} \\
-Djava.util.logging.config.file=${PREFIX}/logging.properties \\
-classpath ${PREFIX}/okta-aws-cli.jar \\
com.okta.tools.WithOkta "\$@"
com.okta.tools.WithOkta \$@
EOF
chmod +x "${PREFIX}/bin/withokta"

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/okta/tools/helpers/RoleHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public RoleHelper(OktaAwsCliEnvironment environment) {
public AssumeRoleWithSamlResponse assumeChosenAwsRole(AssumeRoleWithSamlRequest assumeRequest) {
AwsBasicCredentials nullCredentials = AwsBasicCredentials.create("empty", "empty");
StaticCredentialsProvider nullCredentialsProvider = StaticCredentialsProvider.create(nullCredentials);
System.out.println(environment.awsRegion.id());
StsClient sts = StsClient.builder()
.region(environment.awsRegion)
.credentialsProvider(nullCredentialsProvider)
Expand Down

0 comments on commit 63b8809

Please sign in to comment.