dark-loop / functions-authorize

An ASP.NET Core based authentication and authorization middleware for HTTP triggered Azure Functions (In-Proc and Isolated)
Apache License 2.0
37 stars 4 forks source link

Removing existing Bearer configuration by default when adding custom bearer token #23

Closed artmasa closed 7 months ago

artmasa commented 7 months ago

When using this package AddAuthentication or AddFunctionsAuthentication extension methods, it was leaving built-in functions host configuration in place. AddJwtBearer contains a removeBuiltInConfig optional parameter having a default value of false. This change switches the default value to true, which removes all configuration the host has introduced for the Bearer scheme. Only custom configuration is left in place.

This change addresses issue #19 and #21