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

redirect_url to moduleid is not working #26

Closed chdev77 closed 7 years ago

chdev77 commented 7 years ago

Everything is working except the redirect after logging in.

Here is my partial config.

export const oidcConfig = {
    loginRedirectModuleId: "**appmain**",
    logoutRedirectModuleId: "home",
    userManagerSettings: {
        // number of seconds in advance of access token expiry
        // to raise the access token expiring event
        accessTokenExpiringNotificationTime: 1,
        authority: environment.openidConfig.urls.authority,
        automaticSilentRenew: false, // true,
        //interval in milliseconds to check the user's session
        checkSessionInterval: 10000,
        client_id: environment.openidConfig.client_id,
        filterProtocolClaims: true,
        loadUserInfo: false,
        post_logout_redirect_uri: `${environment.openidConfig.urls.host}/signout-oidc`,
        redirect_uri: `${environment.openidConfig.urls.host}/signin-oidc`,

After signing in i get redirected correctly to http://localhost:9000/signin-oidc#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSIsImtpZCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc3MiOiJodH.....

Aurelia gives me this error in on the appMain route. capture

chdev77 commented 7 years ago

I dissected the source code and was able to find the issue. I was a config issue on my part

shaunluttin commented 7 years ago

I'm glad that you have solved the issue. Thank you for opening it and apologies for my late reply.