azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Minidp/Server/bysys retruns 500 when the posted `sysToken` is bad. Should return 400 instead #801

Closed itadapter closed 1 year ago

itadapter commented 1 year ago

https://dev-tap-idp.g8day-dev.com/minidp/server/bysys

{
    "realm": "gdi",
    "sysToken": "malformed",
    "plain": true
}

Generates:

Controller action body: 'Azos.Security.MinIdp.Server'.'bysys'. Exception: [Azos.Security.SecurityException] Argument error: HMACAESCryptoMessageAlgorithm.Unprotect(protectedMessage.Count < 48)
zhabis commented 1 year ago

Returned 500, now will return null

zhabis commented 1 year ago

done