How to Call ADFS in MVC project on a particular page call or is it possible to check the particular page call in my MVC StartUp.cs.? RRS feed

  • Question

  • Hi Support team,

    In my mvc5 web application, I have developed a particulare page and that will be accessed by the second application.

    That is, My application is " http://int.MyApp.net",  and particular page is "CallNewPage". Hence, Third party application is calling my application like  "http://int.MyApp.net/CallNewPage?FileId=100".

    For my application direct access, I have windows authentication and I have to use ADFS(Active Directory Federation Service) authentication for the third party to call my application.

    To achieve this,

    I am using own and when I enabled the owin in web.config file ( <add key="owin:AutomaticAppStartup" value="true" /> ), it will call startup.cs file in the project. In startup.cs file, I have a logic to call ADFS(active directory federation service.).

    My Problem is,

    Everytime application is calling ADFS which should not happen.

    And I want to call ADFS only when the third party application calls the URL : "http://int.MyApp.net/CallNewPage?FileId=100".

    Please help me out on this concern.



    Sunday, April 8, 2018 3:45 PM

All replies

  • Hi Shashi,

    Welcome to the MSDN forum.

    It seems your issue is about the MVC development and our forum is to discuss the VS IDE, Please redirect to this appropriate forum: https://forums.asp.net/1146.aspx and start a new thread to seek for a better support, thank you for your understanding.

    Best regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, April 9, 2018 5:22 AM