-
-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade the ng-example? Latest combination of packages aren't working? #27
Comments
The logged output is this...
The bit that logs "handling appUrlOpen" is my deep link handler. So it's getting that far. In that handler I parse the slug from the custom schemed-url and would do the internal navigation. That final error occurs upon redirecting back to the app. I'm wondering if that is a sign that processing is being halted before the returned state is able to be processed. Though, I thought the response data would have been handled earlier than that point. So that error could be benign. But, I'm seeing that 4th line from the bottom in the log (closing the tab) as possibly connect to the code at https://github.com/jy95/keycloak-capacitor/blob/main/src/keycloak.js#LL1630C1-L1631C1 which appears to be just before it will be handling the return url's data. Am I on the right track? |
I'm going to close this. I re-performed the upgrade, and I don't know if it was the order that things where done, or flushing out older dependencies, but it is working now with Angular 15, Ionic 7 and Capacitor 5 |
Would it be possible to upgrade the ng-example to the latest packages (e.g. capacitor) and latest keycloak? I too am using ionic w/ keycloak and this package. But I've upgraded my app's dependencies to the latest packages (including ionic v7) and something isn't working. I've re-created a minimal example and it's similarly not working.
The problem seems to be when keycloak redirects back to the app on iOS, using a custom URL scheme, that the app does get resumed, but it essentially ignores the query string information. At least the keycloak service doesn't indicate that the user is logged in upon returning back to the app. What part is supposed to notice that it came back to the app via the custom url scheme, there's a query string representing the state that must be used to obtain the refresh token, etc.?
My own example works when the adapter is "default" and I test in a browser, but when using the capacitor adapter and iOS, it does not.
I'm at a loss for the problem. I came here to try and run its example, but can't get it even to install the npm packages at this point.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: