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

OIDC on Aurelia SpaTemplates #31

Closed andreabaldin closed 6 years ago

andreabaldin commented 6 years ago

I would like to integrate OIDC onto the Aurelia Microsoft.AspNetCore.SpaTemplates...
Currently I'm getting "Uncaught (in promise) Error: Unable to find module with ID: aurelia-open-id-connect".

jblackburn21 commented 6 years ago

I had to do this to get it working with webpack:

  1. Use PLATFORM.moduleName when adding the plugin: .plugin(PLATFORM.moduleName('aurelia-open-id-connect'), (callback) => callback(oidcConfig))

  2. add this to the webpack.config.js: new ModuleDependenciesPlugin({ 'aurelia-open-id-connect': ['./open-id-connect-user-block', './open-id-connect-role-filter'] }),

shaunluttin commented 6 years ago

I am working on adding some reliable demo applications here:

https://github.com/shaunluttin/aurelia-open-id-connect-demos

That might be helpful for you.

shaunluttin commented 6 years ago

Thank you for your note. That will help as I setup support for Webpack and add a demo for the ASP.NET Core Aurelia SPA template.

shaunluttin commented 6 years ago

There is now a demo (from @gerbendekker) of the ASP.NET Core Aurelia SPA template here:

https://github.com/shaunluttin/aurelia-open-id-connect-demos/tree/master/aurelia-app-identity-server-aspnetcore