Skip to content

Disable AD based auth#288

Open
pragyagandhi wants to merge 4 commits intomainfrom
personal/pragyagandhi/disableauth
Open

Disable AD based auth#288
pragyagandhi wants to merge 4 commits intomainfrom
personal/pragyagandhi/disableauth

Conversation

@pragyagandhi
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR temporarily disables Active Directory-based authentication by commenting out the conditional logic that sets different auth token callbacks based on the aznfsc_cfg.auth flag. Instead, it always sets the callback to get_auth_token_and_setargs_cb_none, which represents no authentication. The change is made with the stated intention to re-enable authentication when TLS support is added.

Changes:

  • Commented out the conditional authentication logic that checked aznfsc_cfg.auth
  • Added an explanatory comment about disabling AAD/AD authentication until TLS support is available
  • Set the auth token callback to unconditionally use the "none" variant

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}

if (aznfsc_cfg.auth) {
// Disable AAD based auth for now. We will enable this when we support auth with TLS.
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The comment refers to "AAD based auth" but should say "AD based auth" to match the PR title, or clarify if this is Azure Active Directory (AAD) or Active Directory (AD). The inconsistency between the comment and PR title could cause confusion.

Suggested change
// Disable AAD based auth for now. We will enable this when we support auth with TLS.
// Disable Azure Active Directory (AAD) based auth for now. We will enable this when we support auth with TLS.

Copilot uses AI. Check for mistakes.

}*/
set_auth_token_callback(get_auth_token_and_setargs_cb_none);

Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

There is a tab character at the end of this line. This should be removed to maintain consistent whitespace formatting.

Suggested change

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@pragyagandhi Canou make change to bool aznfsc_cfg::set_defaults_and_sanitize()
and set xprtsec always to none. Then you don't need this change.


if (aznfsc_cfg.auth) {
// Disable AAD based auth for now. We will enable this when we support auth with TLS.
/* if (aznfsc_cfg.auth) {
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The indentation is inconsistent. The commented-out code uses proper indentation, but the opening comment marker has a space instead of tab or proper indentation alignment.

Suggested change
/* if (aznfsc_cfg.auth) {
/* if (aznfsc_cfg.auth) {

Copilot uses AI. Check for mistakes.
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.

2 participants