Azure / azure-webjobs-sdk-extensions

Azure WebJobs SDK Extensions
MIT License
341 stars 204 forks source link

Support ClaimsPrincipal with Azure Static Web Apps Auth #658

Open anthonychu opened 3 years ago

anthonychu commented 3 years ago

Static Web Apps’ x-ms-client-principal header is different than Easy Auth’s. Need to sniff which one it is and create ClaimsPrincipal accordingly.

@cgillum is it possible to make this change soon so we can try to get it into a release before Ignite? /cc @fabiocav @brettsam

cgillum commented 3 years ago

I think so. @mkarmark is planning on looking into this work item this week.

cgillum commented 3 years ago

Ah, sorry @anthonychu, I just looked at the calendar and realized that we're probably too late for Ignite. We're working on this, but it doesn't look like we'll be able to catch the Ignite train at this point.

anthonychu commented 3 years ago

No worries. We documented how to decode the header. We’ll update once this is done and deployed. Thanks.