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

Consider logging missing code_verifier when code_challenge is included in authorization request #1248

Closed

Description

@sjohnr

Activity

  1. added a commit that references this issue on Jun 13, 2023
  2. added this to the milestone on Jun 13, 2023
  3. self-assigned this
    on Jun 13, 2023
  4. dciarniello commented on Jun 13, 2023

    @dciarniello

    I'm wondering why DEBUG and not INFO or WARN, something more appropriate for Production, in other words.

  5. sjohnr commented on Jun 15, 2023

    @sjohnr
    ContributorAuthor

    @dciarniello we want to be very conservative about what shows up at INFO or WARN because these logs would show up for most deployments by default, which potentially could be very noisy. I'd rather be asked to turn up logging then turn it down. Instead, these logs are in their own classes at DEBUG so you can opt-in to whichever you want by enabling DEBUG for that particular class (logger) only. Does that make sense?

  6. dciarniello commented on Jun 15, 2023

    @dciarniello

    @sjohnr , Yes, the reasoning does make sense as there's issue of having enough information in the logs to troubleshoot issue versus having logs that are so noisy that it actually impedes troubleshooting. In this particular case, however, I would assume that the errors would be infrequent enough that they would not generate a lot of noise so I would lean towards logging them at a higher level.

    DEBUG is not something that we would generally turn on in production exactly because of the potential for increased noise. Having said that, I have not examined the code to see if turning on DEBUG for the classes in question would be excessively noisy.

  7. sjohnr commented on Jun 16, 2023

    @sjohnr
    ContributorAuthor

    Hi @dciarniello!

    In this particular case, however, I would assume that the errors would be infrequent enough that they would not generate a lot of noise so I would lean towards logging them at a higher level.

    I hear you, and I agree in general. However, consider a provider built using SAS that has 100,000 registered clients and allows free developer trials, which frequently have invalid configurations pointed at it. This would not be ideal for such a provider. While I can't say how likely that is, the goal here is to provide the option (tuning DEBUG for the classes in question) for those that need it, but not impacting those that don't.

    If the out-of-the-box logging story does not suit you, there are options available to add your own, and I think having certain errors at INFO level would qualify as a customization need. If you find it is impossible to customize as you need, feel free to open another issue with details and we can take a deeper look.

    DEBUG is not something that we would generally turn on in production exactly because of the potential for increased noise. Having said that, I have not examined the code to see if turning on DEBUG for the classes in question would be excessively noisy.

    This is exactly why we placed the DEBUG logs in the classes where the relevant error occurs instead of in the Filter implementation. I believe it should suit you, but please let me know if you have issues I didn't foresee.

  8. dciarniello commented on Jun 16, 2023

    @dciarniello

    Hi, @sjohnr
    100,000 clients isn't something we deal with so I hadn't considered that :-)

    I've now looked at the code and I believe that the change will, indeed, work for us. I'll let you know if it doesn't after we've had a chance to try it out.

    Thanks!

  9. modified the milestones: , 1.2.0-M2 on Aug 1, 2023
  10. added a commit that references this issue on Oct 2, 2023
    219ef93
  11. added a commit that references this issue on Feb 19, 2024
    6b6b211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions