Skip to content

Commit

Permalink
Merge pull request #18 from WarnerMedia/rebase-to-2.4.4
Browse files Browse the repository at this point in the history
Rebase to 2.4.4
  • Loading branch information
mjreed-wbd authored Apr 27, 2022
2 parents 2b7fcdb + 880465f commit 47768f3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ENV PACKAGES="gcc musl-dev python3-dev libffi-dev openssl-dev cargo"

RUN apk --update add $PACKAGES \
&& pip install --upgrade pip setuptools-rust \
&& pip install futures \
&& python setup.py install \
&& apk del --purge $PACKAGES

Expand Down
2 changes: 1 addition & 1 deletion gimme_aws_creds/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['config', 'okta', 'main', 'ui']
version = '2.4.3.2'
version = '2.4.4.1'
2 changes: 1 addition & 1 deletion gimme_aws_creds/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def _introspect_factors(self, state_token):
def _extract_state_token_from_http_response(http_res):
saml_soup = BeautifulSoup(http_res.text, "html.parser")

if hasattr(saml_soup.title, 'string') and re.match(".* - Extra Verification$", saml_soup.title.string):
if hasattr(saml_soup.title, 'string') and re.match(".* - (Extra Verification|Vérification supplémentaire)$", saml_soup.title.string):
# extract the stateToken from the Javascript code in the page and step up to MFA
# noinspection PyTypeChecker
state_token = decode(re.search(r"var stateToken = '(.*)';", http_res.text).group(1), "unicode-escape")
Expand Down
1 change: 0 additions & 1 deletion lambda/lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,5 @@ def main():
}
}

print(aws_account_info(event, {}))

if __name__ == "__main__": main()

0 comments on commit 47768f3

Please sign in to comment.