-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Description
I have tried to use the AuthPlugin in the stable version 1.0.0 and found out that the AuthPlugin "Enabled" is always set to false in the "InitializeAsync" and compared to previous version 0.28.0 which work normally.
Expected behaviour
The "Enabled = false" should be removed to prevent override the enabled configuration.
Actual behaviour
The "Enabled=false" currently override the enabled configuration.
Steps to reproduce
Just use the AuthPlugin for any request.
Dev Proxy Version
1.0.0
Operating system (environment)
Windows
Shell
PowerShell
Configuration file
{
"$schema": "https://github.com/raw/dotnet/dev-proxy/main/schemas/v1.0.0/rc.schema.json",
"plugins": [
{
"name": "AuthPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "auth"
}
],
"auth": {
"$schema": "https://github.com/raw/dotnet/dev-proxy/main/schemas/v1.0.0/authplugin.schema.json",
"type": "oauth2",
"oauth2": {
"metadataUrl": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration",
"allowedApplications": [
"00000000-0000-0000-0000-000000000000"
],
"allowedAudiences": [
"00000000-0000-0000-0000-000000000000"
],
"allowedPrincipals": [
"00000000-0000-0000-0000-000000000000"
],
"allowedTenants": [
"00000000-0000-0000-0000-000000000000"
],
"issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0",
"scopes": [
"Posts.Read"
],
"validateLifetime": true,
"validateSigningKey": true
}
},
"urlsToWatch": [
"https://jsonplaceholder.typicode.com/*"
],
"rate": 0,
"logLevel": "trace",
"newVersionNotification": "stable",
"showSkipMessages": true,
"showTimestamps": true
}
Additional Info
As new version since 0.29.0 onwards, the AuthPlugin is always set to "Enabled=false", I have revert back to version 0.28.0