Skip to content

Commit 3b8b780

Browse files
Update No-Authentication Configuration
1 parent 4ed5991 commit 3b8b780

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ services:
1212
ports:
1313
- '5065:5065'
1414
environment:
15-
# API key authorization
15+
# API key authorization
1616
CustomerEndpointsSecurity__ApiKey: ${MNESTIX_BACKEND_API_KEY:-verySecureApiKey}
17+
# AzureAd
18+
AzureAd__EnableAzureAdAuth: "false"
1719
# Connection to Repository Service:
1820
ReverseProxy__Clusters__mnestixApiCluster__Destinations__destination1__Address: 'http://mnestix-api:5064/'
1921
ReverseProxy__Clusters__aasRepoCluster__Destinations__destination1__Address: 'http://aas-environment:8081/'
@@ -25,7 +27,7 @@ services:
2527
# Token:
2628
ReverseProxy__Routes__InfluxRoute__Transforms__1__Set: 'Token '
2729
# OpenID Configuration
28-
OpenId__EnableOpenIdAuth: "true"
30+
OpenId__EnableOpenIdAuth: "false"
2931
OpenId__Issuer: "http://keycloak:8080/realms/Mnestix"
3032
OpenId__ClientID: "mnestixApi-demo"
3133
OpenId__RequireHttpsMetadata: "false"
@@ -101,6 +103,8 @@ services:
101103
profiles: ['', 'basyx', 'tests']
102104
depends_on:
103105
- mongodb
106+
ports:
107+
- '8081:8081'
104108
environment:
105109
# MongoDb configuration for Basyx Repository
106110
BASYX__BACKEND: MongoDB

mnestix-proxy/Authentication/AuthenticationServicesRegistration.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ public static void AddAuthenticationServices(this IServiceCollection services, I
5757
else {
5858
services.AddAuthentication(options =>
5959
{
60-
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
61-
}).AddJwtBearer();
60+
options.DefaultAuthenticateScheme = null;
61+
options.DefaultChallengeScheme = null;
62+
});
6263
}
6364
}
6465
}

0 commit comments

Comments
 (0)