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

Avoid using SafariViewController when token expires #418

Open
mmoosbac94 opened this issue Mar 22, 2024 · 4 comments
Open

Avoid using SafariViewController when token expires #418

mmoosbac94 opened this issue Mar 22, 2024 · 4 comments

Comments

@mmoosbac94
Copy link

Hello everybody,

we currently have the issue that we have to avoid the use of safari services. Our goal is to use the os standard browser for authentication. Its working when we first authorize via "oauth2.authorize()". But if the token expires, the SafarViewController is shown for new authentication. Is there a way to not use the SafariViewController and use the os standard browser instead for a new authentication as well?

Thank you

@ossus-lib
Copy link
Collaborator

Even if authorizeEmbedded is set to false?

@mmoosbac94
Copy link
Author

Yes, and when we start the app its working. The standard default browser will be opened. But if the token expires and there is no refresh token and I am in app, then the Safari Viewcontroller is shown instead of the browser. We already tried different advanced settings from documentation but without success.

@ossus-lib
Copy link
Collaborator

Can you reproduce with a debug logger and paste the logs here?

oauth2.logger = OAuth2DebugLogger(.trace)

@mmoosbac94
Copy link
Author

We tried to get some logs, but the authorization function is not called again when token expires. So when token expires there are no visible p2/oauth2 specific logs. We are using a so called ArcGIS SDK. We are not sure if this SDK is responsible for showing the SafariViewController.

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