Merged PR 102: commented Dadeschool token

commented Dadeschool token
This commit is contained in:
Uppu, Vijay 2023-12-21 19:13:36 +00:00
commit 735a5ee62c
2 changed files with 4 additions and 4 deletions

View File

@ -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<ActionResult> 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<ActionResult> RefreshTokenAsync(TokenResponse tokenResponse)
{

View File

@ -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",