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

Make #auth_capable? public #63

Merged
merged 1 commit into from
Nov 4, 2023
Merged

Conversation

nevans
Copy link
Contributor

@nevans nevans commented Oct 9, 2023

This can be useful to users of the library, in the same way that #capable?, #capabilities, and #capable_auth_types are all useful. For what it's worth #auth_capable? is public for net-imap v0.4.0.

I will also suggest that perhaps some future version should deprecate (and eventually, remove) the specific mechanism predicate methods (capable_plain_auth?, capable_login_auth?, and capable_cram_md5_auth?). A new predicate method shouldn't be added for every potential SASL mechanism.

This can be useful to users of the library, in the same way that
`#capable?`, `#capabilities`, and `#capable_auth_types` are all useful.
I suggest deprecating the specific mechanism predicate methods
(`capable_plain_auth?`, `capable_login_auth?`, and
`capable_cram_md5_auth?`), as they are all replaced by this.
@tmtm tmtm merged commit bb0c273 into ruby:master Nov 4, 2023
12 checks passed
@nevans nevans deleted the sasl/public-auth_capable branch November 7, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants