From the course: Angular: Building on Azure Microservices

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Exploring APIs in Auth0

Exploring APIs in Auth0

From the course: Angular: Building on Azure Microservices

Start my 1-month free trial

Exploring APIs in Auth0

- [Instructor] In this chapter, we're going to secure our API using Auth0. This means that only the people who have been given a client access token by us will actually be able to pull up our data. So the first thing I'm going to do is select APIs from my Auth0 dashboard and create a new API. I'm going to call this the Forcasts API and my identifier can be anything I want it to be, but I'm going to do api//forecasts. And I'm going to select HS256 as my signing algorithm. And now that I'm in here, I can go ahead and create some scopes. Scopes are permissions for your API and you can give one permission to one client, but not give it to another if you need to separate that. So we're going to have read forecasts as our permission. And I'll add another one that's write forecasts. Now that I've done that, I can save this and return to Non Interactive Clients. I want to create a non interactive client who can actually hit this endpoint and query it. So I'm going to go to clients, create…

Contents