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

[WIP] AzCopy as a library login #2913

Draft
wants to merge 1 commit into
base: gapra/azcopyLibraryInit
Choose a base branch
from

Conversation

gapra-msft
Copy link
Member

Description

  • Feature / Bug Fix: (Brief description of the feature or issue being addressed)

  • Related Links:

  • Issues

  • Team thread

  • Documents

  • [Email Subject]

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Thank you for your contribution to AzCopy!

@gapra-msft gapra-msft changed the title Migrated login [WIP] AzCopy as a library login Jan 13, 2025
loginCmdArg.LoginType = common.EAutoLoginType.SPN().String()
} else if loginCmdArg.identity {
loginCmdArg.LoginType = common.EAutoLoginType.MSI().String()
} else if loginCmdArg.servicePrincipal && loginCmdArg.identity {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The check for both servicePrincipal and identity should be first. This prevents the conflicting case from being overlooked and ensures that the other cases are handled afterward.

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.

4 participants