Skip to content

ENV OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR is not working #1178

Closed
@iTaybb

Description

@iTaybb

The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR is not working.

Expected Behavior

The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR should affect whether a detailed error is showed on the error page or not.

Current Behavior

The environment variable OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR has no effect, while the --show-debug-on-error command-line argument works as expected.

Possible Solution

Golang isn't really my specialty, but the issue might be here, perhaps the cfg value should be with underscores instead of dashes.

Your Environment

  • Version used: 7.1.3

Activity

NickMeves

NickMeves commented on May 3, 2021

@NickMeves
Contributor

Yup! That's definitely the error -- good catch. Do you want to open a PR with a fix?

added a commit that references this issue on May 4, 2021
4b55a61
iTaybb

iTaybb commented on May 4, 2021

@iTaybb
ContributorAuthor

I did. Thanks

added 2 commits that reference this issue on May 4, 2021
dff6d91
095e1db
added a commit that references this issue on Jun 13, 2021
63fa582
added a commit that references this issue on Sep 20, 2021
b11f7ab
added a commit that references this issue on Apr 6, 2022
f6d6807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ENV OAUTH2_PROXY_SHOW_DEBUG_ON_ERROR is not working · Issue #1178 · oauth2-proxy/oauth2-proxy