Getting URL from Ember Router Transition for SSO Login

Apologies for opening up such an old topic but I have run into this problem as well. In order to authenticate via an OAuth server (Keycloak in my case) I too need to provide a redirect url for the server to use when redirecting back to the Ember app.

I have figured out how to make this work by inspecting either the ‘transition.intent.url’ and using that if it exists, or, if it doesn’t, by calling ‘generateURL(routeName, models, queryParams)’ on the (private) routing service with parameters scraped out of the transition. But using private methods and services is obviously not ideal and is, I suspect, very fragile. Is there a better way to do this that I have missed ?