-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Explicitly setting "ssoInTuneAuthUser" is broken #1466
Comments
you need to run the intune app https://learn.microsoft.com/en-us/mem/intune/user-help/microsoft-intune-app-linux but that one is not available yet in Ubuntu. This was a feature added by the community in #1280 , so I don't really fully know how it works tbh. I would follow this issue in MS land but I believe this is not an issue with the app unfortunately. Good luck https://learn.microsoft.com/en-us/answers/questions/1665760/intune-portal-availability-for-ubuntu-24-04-lts |
This seems to be a workaround that people use https://panther.kapsi.fi/posts/2024-09-03_ubuntu_intune Hopefully this helps! |
@IsmaelMartinez OK, but I pointed out a specific bug in The feature seems to partially work, otherwise. I am still testing this. Just wanted to point out that specific bug. The workaround I am using right now is to not specify a |
@IsmaelMartinez Please reopen this. The bug in https://github.com/IsmaelMartinez/teams-for-linux/blob/main/app/intune/index.js#L17 is still there. This is not related to InTune itself, but a simple logic error in the for-each loop. |
We need to iterate the values, not the indexes. closes: IsmaelMartinez#1466
Apologies that I didn't see the error. Trying to manage that many issues sometimes makes me misunderstand issues, and or forget about them. Thanks for putting an MR @fmoessbauer . I will have a look once I get sometime (extremely busy day at work). But check you have updated the package.json file and the appmetadata (the info is in the CONTRIBUTING md file). Thanks again! |
Describe the bug
When explicitly specifying
ssoInTuneAuthUser
in the config, the inTune account will not be found even if it exists.To Reproduce
Steps to reproduce the behavior:
ssoInTuneEnabled
totrue
andssoInTuneAuthUser
to an account that existsExpected behavior
The account is found.
Desktop:
Debug
When setting
ssoInTuneAuthUser
:When only setting
ssoInTuneEnabled
totrue
and not specifying the user, so it uses the first one found:Additional context
It seems to be a bug in this part of
app/index.js
:I will just quote our friend GitHub Copilot here:
The behavior you are observing is due to the way the
processInTuneAccounts
function is implemented. Here is a brief explanation:When
ssoInTuneAuthUser
is specified:response.accounts
array to find an account with a username that matchesssoInTuneAuthUser
.for (const account in response.accounts)
, which iterates over the keys (indices) of theresponse.accounts
array, not the actual account objects.account.username
isundefined
, and the comparisonaccount.username == ssoInTuneAuthUser
always fails.The text was updated successfully, but these errors were encountered: