Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

Azure Friday: API Options Azure Static WebApps

Host and Guest Info

Host: Scott Hanselman

Guest: Annina Keller, MSFT Software Engineer, Azure Static WebApps team

Summary Notes

Host static webapps with API endpoints and authentication!

URL includes '*.azurestaticapps.net'.

Managed Functions (deploying code from repository) are supported.

Node.js API as a WebApp or Container App?

Host your own backedn service in a container app, and then connect the Static WebApp to it.

Demo

API's tab of Static WebApps enables defining the backend resource name in a subscription:

Authentication:

Authn and Authz is OOB capability for this feature.

Any request from the static webapp to the container app will contain the header that the backend app will use to handle authN and authZ.

Another Demo

App combines 'this' with a new feature from API Management.

Setup:

API Management handles ID Proxying:

Kewl Stuff

When logged-on to the Static WebApp, add '.auth/me' to the URL and Azure will return the clientPrincipal JSON including:

Supports multiple pre-configured OAuth providers like Google, Twitter.

Also supports bringing your own OAuth provider.

Return to conted index

Return to Root README