Skip to content

Commit

Permalink
feat: auth kafka config
Browse files Browse the repository at this point in the history
  • Loading branch information
mixhsnhd committed Dec 25, 2024
1 parent 61ea2c8 commit 2abedac
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
22 changes: 21 additions & 1 deletion src/EoaServer.AuthServer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,25 @@
"Url":""
},
"TimeRange":1440,
"ExpirationHour": 48
"ExpirationHour": 48,
"Kafka": {
"Connections": {
"Default": {
"BootstrapServers": "localhost:9092"
}
},
"Producer": {
"MessageTimeoutMs": 30000,
"MessageSendMaxRetries": 3,
"SocketTimeoutMs": 5000
},
"Consumer": {
"SocketTimeoutMs": 5000,
"AutoCommitIntervalMs": 2000
},
"EventBus": {
"GroupId": "EoaServerGroup",
"TopicName": "EoaServerTopic"
}
}
}
2 changes: 1 addition & 1 deletion src/EoaServer.EntityEventHandler/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Kafka": {
"Connections": {
"Default": {
"BootstrapServers": "portkey-eoa-kafka-cluster-kafka-bootstrap:9092"
"BootstrapServers": "localhost:9092"
}
},
"Consumer": {
Expand Down
2 changes: 1 addition & 1 deletion src/EoaServer.HttpApi/Controllers/TokenController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public TokenController(ITokenAppService tokenService)
_tokenAppService = tokenService;
}

[Authorize, HttpGet("list")]
[/*Authorize, */HttpGet("list")]
public async Task<List<GetTokenListDto>> GetTokenListAsync(GetTokenListRequestDto input)
{
return await _tokenAppService.GetTokenListAsync(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace EoaServer.Controllers;
[Area("app")]
[ControllerName("UserActivity")]
[Route("api/app/user/activities")]
[Authorize]
// [Authorize]
public class UserActivityController : EoaServerBaseController
{
private readonly IUserActivityAppService _userActivityAppService;
Expand Down
2 changes: 1 addition & 1 deletion src/EoaServer.HttpApi/Controllers/UserAssetsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace EoaServer.Controllers;
[Area("app")]
[ControllerName("UserAssets")]
[Route("api/app/user/assets")]
[Authorize]
// [Authorize]
public class UserAssetsController : EoaServerBaseController
{
private readonly IUserAssetsAppService _userAssetsAppService;
Expand Down

0 comments on commit 2abedac

Please sign in to comment.