33
Views
1
Comments
[OIDC Customizations] Debugging (indirect) application dependency with navigating out of application URL
oidc-customizations
Service icon
Forge asset by João Barata
Application Type
Service

I have an application (Let's call it Application A) which has dependency to OIDC Client. And OIDC Client has dependency to OIDC Customization. So no direct dependency between Application A and OIDC Customization.

I'm having trouble debugging both components.

  1. Debugging OIDC Client with Application A as entry point:
    • Application A redirects to the OIDC authorization URL, this causes the debugger to stop
    • Once the login is successful - OIDC client /DoLogin URL is called, but it finishes too fast that I can't start the debugger fast enough to catch this flow
    • I tried adding Sleep logic but it still doesn't work, either I get the timeout error when I set the sleep too long. Or the debugger stops again, keeps opening new window when I start it and Application A loads already
  2. Debugging OIDC Customization:
    • I don't even know how to do this because the debugger only has OIDC Client as entry point and that's not what I want

How to debug these scenarios?

2023-09-13 13-47-19
Nuno Magalhães

Hello,

In the first scenario I don't understand what are you trying to debug. Is it something in Application A or in OIDC Client? Because you say that you're redirected and the debugger stops. If that's the case then you should debug OIDC Client since it seems an independent application.

The second scenario is a common problem. In order to use a module as an Entry Module of the debugger, the Entry Module must have a reference to anything of the module you want to debug (even if you don't use that reference at all. You can reference anything at all). In your case, reference any public action, entity, structrure, doesn't matter, from OIDC Customization in module Application A. You'll see that after you publish Application A the OIDC Customization will have a new entry module.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.