diff --git a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs index c5a5c2d..c913ca1 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs @@ -24,7 +24,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers // } // return Unauthorized(result.ErrorMessage); // } - [Authorize(Policy = "Dadeschools")] + // [Authorize(Policy = "Dadeschools")] [HttpPost("token/{employecode}")] public async Task AuthenticateAsync(string employecode) { @@ -36,7 +36,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return Unauthorized(result.ErrorMessage); } - [Authorize(Policy = "Dadeschools")] + // [Authorize(Policy = "Dadeschools")] [HttpPost("refreshtoken")] public async Task RefreshTokenAsync(TokenResponse tokenResponse) { diff --git a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/appsettings.json b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/appsettings.json index 8ff9385..c434226 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/appsettings.json +++ b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/appsettings.json @@ -22,8 +22,8 @@ "Dadeschools": { "Authority": "https://dev-graph.dadeschools.net", "TokenUrl": "https://dev-graph.dadeschools.net/connect/token", - "ClientId": "dmapi", - "ClientSecret": "bfce2c8d-2064-4a02-b19d-7f1d42b16eae", + "ClientId": "damage_assessment", + "ClientSecret": "p7_6mcKuVDD!nbBi64JLwdAhHH*m9i", //"TokenClientId": "damage_assessment_postman", //"TokenClientSecret": "e4774164-f018-44c9-b9d2-3a29fc21db3c", "scope": "openid profile",