Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back authorizationUrl redirect feature with a flag #828

Merged
merged 3 commits into from
Jan 15, 2021

Conversation

qiwzhang
Copy link
Contributor

Rollbacked the `authorizationUrl" redirect feature removed by #824

Add a new flag --redirect_authorization_url to guard this feature. This feature is only enabled when this flag is specified.

nareddyt
nareddyt previously approved these changes Jan 15, 2021
@@ -939,6 +940,11 @@ def make_argparser():
parser.add_argument('--jwks_cache_duration_in_s', default=None, type=int, help='''
Specify JWT public key cache duration in seconds. Default is 5 minutes.''')

parser.add_argument('--redirect_authorization_url', action='store_true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: enable_redirect_to_authorization_url

Current name makes it sound like the flag accepts a URL string as a param.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about
--enable_jwt_authorization_url_redirect

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG

start_esp/start_esp.py Outdated Show resolved Hide resolved
start_esp/start_esp.py Outdated Show resolved Hide resolved
TAOXUY
TAOXUY previously approved these changes Jan 15, 2021
Copy link
Contributor

@TAOXUY TAOXUY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two NITs

@qiwzhang qiwzhang dismissed stale reviews from TAOXUY and nareddyt via 974d05e January 15, 2021 18:30
Signed-off-by: Wayne Zhang <qiwzhang@google.com>
@qiwzhang
Copy link
Contributor Author

PTAL

@qiwzhang qiwzhang merged commit f67ffdc into cloudendpoints:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants