Build a Simple CRUD App with ASP.NET Core 2.1 and Angular 6

Build a Simple CRUD App with ASP.NET Core 2.1 and Angular 6

This tutorial walks you through building a simple CRUD application in ASP.NET Core 2.1 and Angular 6.

Stephen Darnell

That’s a great article Lee. Thank you.
Should the client side configuration have ‘oauth/default’ on the end of the issuer. When I had it on the end, I was always getting a 404 from the login page with a URL path of: /oauth/default/oauth2/v1/authorize?.. apparently it should be /oauth2/v1/authorize?..

Lee Brandt

oauth2/default

bk100

I may be tired, but I did not see a git repo to clone. If it isn’t listed, it would great if the entire completed app for the article could be available for cloning.

leebrandt

Hey bk100:

There isn’t really a repo to clone. The main focus of the post was to help readers upgrade the scaffolded ASP.NET/Angular project to Angular 6.

bk100

What is the recommended way for replacing the Okta configuration for the issuerurl and clientid in the Ng app? Are environment.ts files which would rely on the build process to replace the file the values the best solution? How secure does this need to be from people inside an organization?

// these values changes depending on environment
const config = {
issuer: ‘https://myorg.okta.com/oauth/default’,
redirectUri: ‘http://myapp.com/implicit/callback’,
clientId: ‘{clientId}’
};

leebrandt

I would probably use environment variables to allow for the easy transition from one environment.