aurelia-contrib / aurelia-open-id-connect

An aurelia adapter for the IdentityModel/oidc-client-js
https://zamboni-app.azurewebsites.net
MIT License
54 stars 18 forks source link

Enhancement: redirect to the module after login/ logout #27

Closed AndreSteenbergen closed 6 years ago

AndreSteenbergen commented 7 years ago

After login/ logout the user ends up at a url that is not very nice. I added this in app.js, to remove the url

eventAggregator.subscribe('router:navigation:complete', response => {
            if (response.instruction.fragment.indexOf(oidcConfig.redirect_route) > -1) {
                history.pushState({}, "Welcome back", "");
            }
        });

But it would be a great enhancement if the app autoredirects to the correct url, or make it optional.

shaunluttin commented 6 years ago

Possible duplicate: https://github.com/shaunluttin/aurelia-open-id-connect/issues/17

AndreSteenbergen commented 6 years ago

Looks like it yes ... I'll close