Skip to content

Commit 16104e2

Browse files
authored
fixing readme for Isolated
1 parent 4ac0108 commit 16104e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/isolated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var host = new HostBuilder()
2727
.ConfigureServices(services =>
2828
{
2929
services
30-
.AddFunctionsAuthorization()
30+
.AddFunctionsAuthenticationation(JwtBearerDefaults.AuthenticationScheme)
3131
.AddJwtBearer(options =>
3232
{
3333
options.Authority = "https://login.microsoftonline.com/your-tenant-id";
@@ -77,4 +77,4 @@ public class Functions
7777
```
7878

7979
Something really nice to notice is that for Functions in Isolated mode, the `HttpTriggerAttribute` default `AuthenticationLevel` is `Anonymous`, playing really well with the attribute.<br/>
80-
Also notice how the second function uses the `AuthorizeAttribute` attribute to apply a policy to the function. `FunctionAuthorizeAttribute` was left as part of the framework only to make it easier to migrate from In-Proc to Isolated, but they can be used interchangeably.
80+
Also notice how the second function uses the `AuthorizeAttribute` attribute to apply a policy to the function. `FunctionAuthorizeAttribute` was left as part of the framework only to make it easier to migrate from In-Proc to Isolated, but they can be used interchangeably.

0 commit comments

Comments
 (0)