Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mendhak/angular-dynamic-configuration-with-auth0

Angular application. With dynamic configuration loaded from an API call. With Auth0 integration secured API requests.
https://github.com/mendhak/angular-dynamic-configuration-with-auth0

angular auth0 dynamic jwt

Last synced: about 2 months ago
JSON representation

Angular application. With dynamic configuration loaded from an API call. With Auth0 integration secured API requests.

Awesome Lists containing this project

README

        

Sample repo for [the writeup here](https://code.mendhak.com/angular-dynamic-configuration-with-auth0/)

## To quickly try the application

Create a host file entry.

```
127.0.0.1 frontend.example
```

Run the frontend application

```
npm --prefix frontend start
```

In a separate terminal window, run the API

```
npm --prefix api start
```

Browse to https://frontend.example:4200/. Try logging in/sign up.

Watch the network tab in developer tools for:

* /api/uiconfig - dynamically loaded configuration for the Angular application
* authorize and token - for ID and Access Tokens
* /api/protected - secure API calls being made with Authorization headers