authentication - VS2017 Azure Function Project - Azure AD B2C Tenant - Configure EasyAuth locally -


i have azure ad b2c tenant, 2 applications created , configured work front-end , back-end. front-end application single-page node.js app corresponding msal.js library configured login azure ad b2c tenant, tokens generated validated back-end. back-end application azure function app running in cloud (httptrigger functions), works azure ad b2c tenant authorization/authentication through easyauth. functions in azure function app required authorization header. currently, front-end can b2c login, acquire silently token, call azure function in cloud, passing in token obtained, function validating token , function runs smooth.

so now, want create azure function project in vs 2017 , make sure can develop/test locally deploy later azure functions cloud. created azure function project in vs2017 targeting .net framework 4.6.1 , created 1 azure function. added application in azure ad b2c tenant , configure it. have in project 3 files, function1.cs, host.json , local.settings.json.

how can configure azure function project in vs2017 use azure ad b2c easyauth, same way did in cloud? if check automation scripts can see in microsoft.web/sites/config resource, there siteauthsettings, assume in vs2017 azure function project need update local.settings.json something?.

automation script - microsoft.web/sites/config

there no documentation (or couldn't find it) should add in local.setting.json run. out there?

afaik, azure function doesn't support testing relative authentication on local on azure portal.

if business logic of azure function not rely on authentication, may test function without authentication on localhost.

and if want azure function support authentication feature, may submit feedback this link.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -