Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Add warning when auth_level is used.#148

Merged
inklesspen merged 1 commit intocloudendpoints:masterfrom
inklesspen:auth_level_warning
Apr 13, 2018
Merged

Add warning when auth_level is used.#148
inklesspen merged 1 commit intocloudendpoints:masterfrom
inklesspen:auth_level_warning

Conversation

@inklesspen
Copy link
Copy Markdown
Contributor

This parameter is no longer documented, but is probably still in use by some codebases. It does not do anything and never has. This warning paves the way for removing it in a future version.

This parameter is no longer documented, but is probably still in use
by some codebases. It does not do anything and never has. This warning
paves the way for removing it in a future version.
@inklesspen inklesspen requested review from kryzthov and tangiel April 13, 2018 21:03
Comment thread endpoints/api_config.py
AUTH_LEVEL = _Enum(_AUTH_LEVEL_DOCSTRING, 'REQUIRED', 'OPTIONAL',
'OPTIONAL_CONTINUE', 'NONE')
_AUTH_LEVEL_WARNING = ("Due to a design error, auth_level has never actually been functional. "
"It will likely be removed and replaced by a functioning alternative "
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we actually have plans to provide this functionality?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Eh, I actually considered doing so in this release. It's not too hard. But I decided to ship the release with this warning first to give folks some time to adjust.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, I'd go with "probably".

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Okay :)

Comment thread endpoints/api_config.py
AUTH_LEVEL = _Enum(_AUTH_LEVEL_DOCSTRING, 'REQUIRED', 'OPTIONAL',
'OPTIONAL_CONTINUE', 'NONE')
_AUTH_LEVEL_WARNING = ("Due to a design error, auth_level has never actually been functional. "
"It will likely be removed and replaced by a functioning alternative "
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Okay :)

@inklesspen inklesspen merged commit 13b228a into cloudendpoints:master Apr 13, 2018
@inklesspen inklesspen deleted the auth_level_warning branch April 13, 2018 23:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants