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

teamsapp in CI: asking for authentication even after login #12595

Closed
half2me opened this issue Oct 25, 2024 · 3 comments
Closed

teamsapp in CI: asking for authentication even after login #12595

half2me opened this issue Oct 25, 2024 · 3 comments
Assignees
Labels
investigating needs attention This issue needs the attention of a contributor. TA:E2E Team Area: E2E

Comments

@half2me
Copy link

half2me commented Oct 25, 2024

Describe the bug
I'm running teamsapp as part of a CI run.

# node:lts
- npm i -g @microsoft/teamsapp-cli
- teamsapp --version
- teamsapp auth login azure --interactive false --service-principal -u $AZURE_ORG_APP_ID -p $AZURE_ORG_PASSWORD --tenant $AZURE_ORG_TENANT_ID
- teamsapp auth list
- teamsapp provision --interactive false --env production

The login seems to succeed, but the provision step still asks for me to login again. Even though I've set --interactive false its still trying to open xdg-open.

Screenshots
Screenshot 2024-10-25 at 18 03 41
Screenshot 2024-10-25 at 18 05 04

CLI Information (please complete the following information):

  • OS: linux (docker)
  • Version node:lts

Additional context
Add any other context about the problem here.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Oct 25, 2024
@adashen adashen added investigating TA:E2E Team Area: E2E labels Oct 28, 2024
@jayzhang
Copy link
Member

@half2me The output tells that you are required to login m365 account before provision. You can set the two enviornment variables: "M365_ACCOUNT_NAME" and "M365_ACCOUNT_PASSWORD" and try again.

@jayzhang jayzhang added the needs more info Need user to provide more info label Oct 29, 2024
@adashen adashen removed the needs attention This issue needs the attention of a contributor. label Oct 29, 2024
@half2me
Copy link
Author

half2me commented Oct 29, 2024

@jayzhang how would that work if I have 2FA enabled?

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Oct 29, 2024
@half2me
Copy link
Author

half2me commented Oct 29, 2024

@jayzhang I'm following this guide: https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/use-cicd-template?tabs=secret and it makes no mention of needing a m365 login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating needs attention This issue needs the attention of a contributor. TA:E2E Team Area: E2E
Projects
None yet
Development

No branches or pull requests

3 participants