Forum Discussion

Dmitriy_Sysoev's avatar
Dmitriy_Sysoev
Icon for Nimbostratus rankNimbostratus
Mar 03, 2021

Custom answer from apm with oauth profile

Hi, dear colleagues!

 

i have a problem. i want to be able to report the reason for the authentication error to client. For example that the user is locked out. But, unfortunately, at the end of the policy, the access policy gives only the fact of denied, without reason

 

i'm explain. when i use access policy without oauth profile - i can create custom response if result access policy is denied, like in this topic

 

https://devcentral.f5.com/s/question/0D51T00007HPTaR/how-to-have-f5-apm-send-a-401-status-code-back-instead-of-a-200-for-the-failed-oauth-login-attempts

 

but if i use access policy with oauth profile solution below is not work and i get only one response like https://xxxx.com/data?error=access_denied&state=xxxx

No RepliesBe the first to reply