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

Option for SSO Login Popups for certain Apps #695

Closed
elhennig opened this issue Mar 3, 2023 · 20 comments
Closed

Option for SSO Login Popups for certain Apps #695

elhennig opened this issue Mar 3, 2023 · 20 comments

Comments

@elhennig
Copy link

elhennig commented Mar 3, 2023

I tried to add an app to my teams client that will ask for "Login with Company SSO". In the MS client this will open a popup to continue to login, while the request in teams-for-linux will go to the default browser and not return to the app.

Is there any option to handle such requests (i.e. URLs) within the client?

@elhennig
Copy link
Author

elhennig commented Mar 3, 2023

The error message from debugging is

(electron) The new-window event is deprecated and will be removed. Please use contents.setWindowOpenHandler() instead.

@IsmaelMartinez
Copy link
Owner

Can you try doing Ctrl + Click? if it opens a separate pop up on the browser you then log in on a different context, what might be causing the problem.

@elhennig
Copy link
Author

I did, and it behaves the same way as without CTRL: It only opens a window in my default browser. However, it seems that for this one app in Teams the authentication will not work outside the teams client's context.

@IsmaelMartinez
Copy link
Owner

This piece of logic is the one that will be determining to open it into a different screen.

https://github.com/IsmaelMartinez/teams-for-linux/blob/develop/app/mainAppWindow/index.js#L188

MS do change how the handle the pop ups every now and then... so maybe they have changed something.

@elhennig
Copy link
Author

For me it looks like the request to login via SSO goes to my browser but the return stays there and does not come back to the teams client.

@IsmaelMartinez
Copy link
Owner

Might be related to the PWA issue with the links. I think MS changed something. There is an open issue that might help. Let me find it.

@IsmaelMartinez
Copy link
Owner

#675 might be related to this.

@IsmaelMartinez
Copy link
Owner

The PR in #713 might fix this issue.

@IsmaelMartinez
Copy link
Owner

@elhennig
Copy link
Author

elhennig commented Mar 24, 2023

The behavior in 1.0.56 is still the same as before, unfortunately

@jijojosephk
Copy link
Collaborator

Can you tell me which app you're trying to add? Let me try to reproduce at my end

@elhennig
Copy link
Author

The app is Office RND Hybrid (see https://www.officernd.com)

@jijojosephk
Copy link
Collaborator

jijojosephk commented Apr 29, 2023

Thanks but it's asking for some admin rights. What I get.

  1. start free trial
  2. launches a new window
  3. then i have admin rights error.

The above is restriction on my account.

So what is the expectation if everything's right.

@elhennig
Copy link
Author

Well this is a app to book work places in our company. It tries to open a page with a SSO page (from the MS cloud, probably at some point this leads to login.microsoftonline.com) and opens it in a browser but looses the context and does not revert back to Teams-for-Linux. In the MS Teams Web-App this feedback returns well, of course.

@jijojosephk
Copy link
Collaborator

Do you face the same with GitHub also? Something like this
image

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Apr 29, 2023 via email

@jijojosephk
Copy link
Collaborator

@IsmaelMartinez it's not currently implemented. CTRL + click is having disposition background-tab that is currently denied. We should show a confirmation before sharing the session.

jijojosephk added a commit to jijojosephk/teams-for-linux that referenced this issue Apr 29, 2023
@jijojosephk
Copy link
Collaborator

@elhennig checkout 1.0.78

@elhennig
Copy link
Author

elhennig commented May 2, 2023

@jijojosephk Thanks a lot! The new dialogue works fine for me (tried with 1.0.80).

@elhennig elhennig closed this as completed May 2, 2023
@foxylion
Copy link

foxylion commented May 3, 2023

Hey, after updating to the latest version I noticed the change made here. While this might be sometimes useful it is pretty bad UX for users that do not need this regularly. I can now no longer open links with a single click, but do need two clicks and a mouse movement. When trying to open multiple links in a row this does not take ages...

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

4 participants