Azure / Azure/static-web-apps

Support custom OAuth provider with Federated Identity Credential

Open
#1,734 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Could you please support using Federated Identity Credential to configure a custom OAuth provider for a SWA? Our tenant policy prohibits creating any client secrets, but it seems to be what most tutorials are refering to.

**Describe the solution you'd like**

Support using Federated Identity Credential to configure a custom OAuth provider for a SWA.

**Describe alternatives you've considered**

I attempted to use a custom certificate to configure the custom OAuth provider but I wasn't able to get it to work. I followed the instructions in https://learn.microsoft.com/en-us/azure/static-web-apps/authentication-custom?tabs=aad%2Cfunction#custom-certificate. After configuring my custom OAuth provider, I visited my site, signs in, and get a 401 at the login callback page. I don't know what to do next. Unfortunately, there aren't enough documentations or examples online on how to use a certificate for the custom OAuth provider. Besides, given that certificate share many common issues in client secrets, using Federated Identity Credential is still a more ideal solution.

**Additional context**

N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.