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

feat: MacOs, open login/logout page as new tab in browser #124

Open
albe-jj opened this issue Sep 22, 2024 · 2 comments
Open

feat: MacOs, open login/logout page as new tab in browser #124

albe-jj opened this issue Sep 22, 2024 · 2 comments
Labels
question Further information is requested waiting for feedback

Comments

@albe-jj
Copy link

albe-jj commented Sep 22, 2024

Description

Currently in macos it seems like that the login / logout page opens in webview which before opening the login or logout page always shows a popup asking to continue: “sso_login_app” Wants to Use “myapp.com” to Sign In.

Would it be possible to open the login page as a new tab in the current web browser instead?

@ahmednfwela
Copy link
Member

Hi @albe-jj , if your app is running in a browser already (not a native macos app), yes you can by changing the navigation mode

this.navigationMode =
OidcPlatformSpecificOptions_Web_NavigationMode.newPage,

@ahmednfwela ahmednfwela added question Further information is requested waiting for feedback labels Sep 26, 2024
@albe-jj
Copy link
Author

albe-jj commented Sep 27, 2024

HI @ahmednfwela. No the app is running on desktop. Is it possible?
There is a few downside i found in using webview:

  • the popup “sso_login_app” Wants to Use “myapp.com” to Sign In.
  • if the webview auth page is already open but minimised clicking on the flutter app button Start auth code flow will not do anything.
  • if you click several times on Start auth code flow then after you close the current webview window a new one will pop up, for each click you did.

Another question, on MacOs desktop app is it possible to use http://localhost:0 instead of the custom url com.bdayadev.oidc.example:/ for the redirect urls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting for feedback
Projects
None yet
Development

No branches or pull requests

2 participants