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

Pass oauth token obtained from another machine #1521

Open
epagone opened this issue Dec 14, 2024 · 5 comments
Open

Pass oauth token obtained from another machine #1521

epagone opened this issue Dec 14, 2024 · 5 comments

Comments

@epagone
Copy link

epagone commented Dec 14, 2024

Is your feature request related to a problem? Please describe.
Intune does not support the system that I am using.

Describe the solution you'd like
I hope the answer to this request is not something already available: my search (and my understanding) didn't lead me to anything useful.

I'd like to pass an oauth token obtained form another machine to teams-for-linux. Is this currently possible or can it be potentially enabled?

Thanks.

Describe alternatives you've considered
That's the only solution to the problem that I can think of.

Additional context
Available on specific request.

@IsmaelMartinez
Copy link
Owner

Do you have a password manager? You might be able to use the ssoBasicAuthPasswordCommand and ssoBasicAuthUser config options. (I have never tried them but did help fix this issue for other users)

I don't think there is a nice/easy/secure way to pass the oath token from another app. Hopefully intune gets support in your system soon.

@epagone
Copy link
Author

epagone commented Dec 15, 2024

Hopefully intune gets support in your system soon.

I have tested it in a theoretically supported Linux system and it's riddled with bugs (example). So, not holding my breath.

Do you have a password manager? You might be able to use the ssoBasicAuthPasswordCommand and ssoBasicAuthUser config options.

I do not seem to understand the suggestion here. Why would a password manager help? Do either ssoBasicAuthPasswordCommand or ssoBasicAuthUser pass a oauth token?

If so, I could try retrieve the token from the Windows machine where I have full access to Teams (although I have no clue where it is stored) and pass it to the intune unsupported machine, repeating the process when the token expires. No need for a password manager, I can transfer this information safely encrypted between the two machines (although manually). Would this be feasible?

DavMail allows this with the O365Manual interactive dialog window (tested, works) and also Rclone seems to offer this option to mount OneDrive through the advance config options, provided that there is another installed version of Rclone on a Windows machine with intune working to retrieve the token (untested, yet).

@IsmaelMartinez
Copy link
Owner

The problem is that we don't implement the whole app, but just wrap around a thin browser. Anything we implement that goes a bit deeper, tends to be quite fragile and break often.

Can you use key authentication instead? The app does support key base authentication (see the config) and that should be more secure than you needing to pass around tokens from machine to machine every few hours.

@epagone
Copy link
Author

epagone commented Dec 17, 2024

Sorry for the basic question, but can you please explain how to retrieve the authentication key from the Windows machine? Or provide some pointers where I can develop a procedure to follow? I'm not particularly CS literate, unfortunately.

@IsmaelMartinez
Copy link
Owner

that would be set by your system administrator (or whoever is admin in microsoft teams). I know others here have done it (the community added the feature), but not done it myself, so can't be of much help.

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

No branches or pull requests

2 participants