Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aaronpowell/swa-custom-auth-auth0

A sample of how to setup SWA custom OIDC providers using Auth0
https://github.com/aaronpowell/swa-custom-auth-auth0

Last synced: about 1 month ago
JSON representation

A sample of how to setup SWA custom OIDC providers using Auth0

Awesome Lists containing this project

README

        

# Azure Static Web Apps - Custom auth with Auth0

This repository contains an example of how to use Auth0 as a custom auth provider to [Azure Static Web App](https://docs.microsoft.com/azure/static-web-apps/?WT.mc_id=javascript-28110-aapowell). You can read about how to implement this [on my blog](https://www.aaron-powell.com/posts/2021-05-13-using-auth0-with-static-web-apps/).

[Live Demo](https://white-desert-00c81d910.azurestaticapps.net).

## Azure Static Website React Template

This repository contains a template for creating an [Azure Static Web App](https://docs.microsoft.com/azure/static-web-apps/?WT.mc_id=javascript-23110-aapowell) projects using React + TypeScript.

In the template there is [Create React App](https://create-react-app.dev) site using TypeScript and an `api` folder with an empty [Azure Functions](https://docs.microsoft.com/azure/functions/?WT.mc_id=javascript-23110-aapowell), also using TypeScript.

To get started, click the **Use this template** button to create a repository from this template, and check out the [GitHub docs on using templates](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template).

## Running The Application

From a terminal run `npm start` from both the repository root and `api` folder to start the two servers, the web application will be on `http://localhost:3000` and the API on `http://localhost:7071`. Alternatively, you can use the VS Code launch of `Run full stack` to run both together with debuggers attached.