Build a Secure Notes Application with Kotlin, TypeScript, and Okta

Build a Secure Notes Application with Kotlin, TypeScript, and Okta

In this tutorial, you’ll learn how to write a note-taking application in Kotlin and TypeScript - two of the fastest growing languages of 2017. You’ll use two popular frameworks, Spring Boot and Angular, to make development super fast.

Lamba

Is it possible to limit required authentication only for specific endpoints like custom controllers so that the same server can serve the angular app once it got builded?

Matt Raible

Yes, you can create a WebSecurityConfigurerAdapter that specifies which roles are required for certain endpoints, or if they can be accessed anonymously. See Spring Security’s documentation to learn more. You can also see an example config in my 21-Points project.

Sagar Arora

I am getting CORS error, while my client is on port 4200 and server on 8080,
I even set up the both port as trusted origin in authorization server tab in okta
Access to XMLHttpRequest at 'https://dev-531508.okta.com… (redirected from ‘http://localhost:8080/’) from origin ‘null’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Matt Raible

Does it work if you try it in an incognito window?

Sagar Arora

Yes It did.