Coder Social home page Coder Social logo

damienbod / aspnetcoremvcangular Goto Github PK

View Code? Open in Web Editor NEW
56.0 9.0 22.0 7.74 MB

ASP.NET Core MVC with angular in MVC View OpenID Connect Hybrid Flow

Home Page: https://damienbod.com/2017/05/02/using-angular-in-an-asp-net-core-view-with-webpack/

License: MIT License

C# 65.57% TypeScript 3.73% HTML 26.26% JavaScript 4.36% SCSS 0.08%
asp-net-core mvc angular webpack openid anti-forgery hybrid-flow csp xfo redirection

aspnetcoremvcangular's Issues

HMR and Visual Studio Debugging

Hi @damienbod ,

Thank you for the very useful contribution.

Could you please help me with the below requirement.

I want to enable HMR and would like to debug my API in visual studio .Something like JavaScript Services in Asp net core.
Unfortunately I am not allowed to use core so I am porting this code to use MVC5. Could you please help me with the above setup to launch my whole project from visual studio with HMR enabled.

I have seen ur other projects there u were using HMR by launching ur web pack and dotnet code using concurrent command.. But with that approach i could not debug my api since it is launched from cmd line. And also u were using html files for the script injection but here u are using cshtml it needs Mvc pipeline to run. So I cannot use the same approach by running at localhost:8080 for hmr.

Since I want to use windows authentication, I need MVC and cshtml approach.

WebAPI intergration scenario

Hi @damienbod

Thanks for a great contribution.
Do you think we can add a web api core project here?
The flow is:

MVC Angular will be redirected to IdentityServer login page. After successful login there, you will be navigated back to MVC angular.

Angular app need to interact with WebApi to do CRUD function on data.
How can we get a valid access token from MVC, so Angular can pass it to Webapi?

Thanks

prompt=login bug ID4

Update IdentityServer4 to version 4.0.1 when the bugfix is released. At present, ID4 does not support prompt=login

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.