oidc-auth-armada-app/oidc-auth-tools/oidcauthtools
Andy Ning ffa3a8f637 Fix oidc-auth cli for python3
The response to oidc token request is bytes type. This is
fine with python2 as there is no distinguish between bytes
and string. But in python3, bytes and string are different,
causing some string operations (such as split(response, "\n"))
to fail. This is fixed by converting the bytes into string if
the script is run in python3.

Test Plan for Debian and CentOS:
PASS: python3-oidcauthtools package build.
PASS: With oidc-auth-apps applied and configured, run oidc-auth
      cli to get a token.

Closes-Bug: 1978963
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Change-Id: I09e2ddab1b0ab44b0dd5aefebbe25624b3b67300
2022-06-16 14:23:11 -04:00
..
oidcauthtools Fix oidc-auth cli for python3 2022-06-16 14:23:11 -04:00
LICENSE Create CLI for stx-oidc-client 2020-03-03 09:07:16 -05:00
setup.cfg Create CLI for stx-oidc-client 2020-03-03 09:07:16 -05:00
setup.py Create CLI for stx-oidc-client 2020-03-03 09:07:16 -05:00