commented Dadeschool token
This commit is contained in:
parent
2baf4b9dad
commit
eb28885f00
@ -24,7 +24,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers
|
|||||||
// }
|
// }
|
||||||
// return Unauthorized(result.ErrorMessage);
|
// return Unauthorized(result.ErrorMessage);
|
||||||
// }
|
// }
|
||||||
[Authorize(Policy = "Dadeschools")]
|
// [Authorize(Policy = "Dadeschools")]
|
||||||
[HttpPost("token/{employecode}")]
|
[HttpPost("token/{employecode}")]
|
||||||
public async Task<ActionResult> AuthenticateAsync(string employecode)
|
public async Task<ActionResult> AuthenticateAsync(string employecode)
|
||||||
{
|
{
|
||||||
@ -36,7 +36,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers
|
|||||||
return Unauthorized(result.ErrorMessage);
|
return Unauthorized(result.ErrorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Authorize(Policy = "Dadeschools")]
|
// [Authorize(Policy = "Dadeschools")]
|
||||||
[HttpPost("refreshtoken")]
|
[HttpPost("refreshtoken")]
|
||||||
public async Task<ActionResult> RefreshTokenAsync(TokenResponse tokenResponse)
|
public async Task<ActionResult> RefreshTokenAsync(TokenResponse tokenResponse)
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
"Dadeschools": {
|
"Dadeschools": {
|
||||||
"Authority": "https://dev-graph.dadeschools.net",
|
"Authority": "https://dev-graph.dadeschools.net",
|
||||||
"TokenUrl": "https://dev-graph.dadeschools.net/connect/token",
|
"TokenUrl": "https://dev-graph.dadeschools.net/connect/token",
|
||||||
"ClientId": "dmapi",
|
"ClientId": "damage_assessment",
|
||||||
"ClientSecret": "bfce2c8d-2064-4a02-b19d-7f1d42b16eae",
|
"ClientSecret": "p7_6mcKuVDD!nbBi64JLwdAhHH*m9i",
|
||||||
//"TokenClientId": "damage_assessment_postman",
|
//"TokenClientId": "damage_assessment_postman",
|
||||||
//"TokenClientSecret": "e4774164-f018-44c9-b9d2-3a29fc21db3c",
|
//"TokenClientSecret": "e4774164-f018-44c9-b9d2-3a29fc21db3c",
|
||||||
"scope": "openid profile",
|
"scope": "openid profile",
|
||||||
|
Loading…
Reference in New Issue
Block a user