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

Soft deprecate WithAuthority on request level #3697

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

bgavrilMS
Copy link
Member

@bgavrilMS bgavrilMS commented Sep 22, 2022

Fixes #3716

Changes proposed in this request
Hide WithAuthority methods.

Testing

Performance impact

Documentation

  • All relevant documentation is updated.

Copy link
Contributor

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks @bgavrilMS

do we want to add an obsolete(false) attribute?

Copy link
Contributor

@pmaytak pmaytak left a comment

Choose a reason for hiding this comment

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

What about:

@bgavrilMS
Copy link
Member Author

LGTM Thanks @bgavrilMS

do we want to add an obsolete(false) attribute?

I had a long conversation with Azure SDK folks about this and they advise against it. This is because of diamond dependencies again, which can cause warnings. I think the sceanrio is like this:

  • App references MSAL 4.40, uses an API which is not obsolete
  • App also references Azure.Identiy, which references MSAL 4.48, where API is obsolete
  • App now gets a warning (and many apps use "report warnings as errors", which breaks the build)

So they recommend just hiding obsolete APIs.

CC: @pmaytak @neha-bhargava @SameerK-MSFT @trwalke @gladjohn

@bgavrilMS bgavrilMS enabled auto-merge (squash) September 23, 2022 15:02
@bgavrilMS bgavrilMS merged commit f7a4fbc into main Sep 23, 2022
@bgavrilMS bgavrilMS deleted the bogavril/soft_deprecate_authority branch September 23, 2022 15:36
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.

[Feature Request] Soft deprecate WithAuthority on request level
5 participants