Technical Forum
Ask questions. Discover Answers.
Showing results for 
Search instead for 
Did you mean: 

APM integration with AZURE two open-id endpoints


We are using azure as our AD. When have configured the Openid url ( for sign in and signup as a provider for calls going out to azure to get the customer authenticated and that part works as expected. There is a another scenario if customer forgets password and attempts to change the password. The call will directly go to azure where the APM policy is not invoked. After customer changes the password he is prompted to go back to accountsummary. When customer hits go to account summary link he will get redirected back to F5 APM and we are getting the below error message error: HTTP error 400, Error: invalid_grant: AADB2C90088: The provided grant has not been issued for this endpoint. Actual Value : B2C_1A_YA_signup_signin and Expected Value : B2C_1A_YA_ForgotPassword Correlation ID: 08292914-d9c6-4382-a6cf-565739167457 Timestamp: 2020-04-13 20:05:22Z . One thing i observed is that the open_id endpoint for forgot password from azure is When the call from azure is coming back to F5 APM for forgotpassword. APM is validating the open id endpoint and throwing a Oauthclient miss match. Is there is anyway we can intercept the call coming back from azure to redirect the customer to accountsummary without invoking the APM policy. This is the call which is coming back from azure to F5 (and the call from azure to f5 is this URL Is there a way we can do it via irule. I have writen an irule but it did not work as expected.




set forgotpassword [ACCESS::session data get "session.server.landinguri"]

set id [ACCESS::perflow get perflow.irule_agent_id]


log local0. "error message is $forgotpassword"

if {

   $forgotpassword contains "/oauth/client/redirect" && [HTTP::query] eq "p=forgotpassword"}{

   HTTP::cookie remove "MRHSession"

   ACCESS::session remove

   HTTP::redirect ""

   log local0. "redirected to accountsummary"




   log local1. "do nothing"





Experts please help me in resolving this issue.