• Login
  • Register

DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

How to access to DNN objects from separate app ?

You are not authorized to post a reply.
Sort:


New Member


Posts:2
New Member

    Hi there !

    I was able to successfully implement the use of my business application as part of DNN v.07.04.02: I have a page with an iFrame module containing a link to my business application hosted on the same server. I use DNN authorization, and in the application I can get the username using Thread.CurrentPrincipal.Identity.Name, because I use Single Sign On (SHARED AUTHENTICATION).

    The question is: can I access DNN objects of the current session such as UserInfo, etc., from my application? For example, I would like to get a link to a photo from a user's profile in my application.

    Thanks !



    Veteran Member


    Posts:501
    Veteran Member

      Oleg,

      welcome to the DNN Community!

      This should be possible using the Web API. I am not a specialist for that, but you should find enough documentation here: https://dnndocs.com/

      Happy DNNing!
      Michael

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Connect


      New Member


      Posts:2
      New Member

        Posted By Michael Tobisch on 07 Oct 2020 08:40 AM

        Oleg,

        welcome to the DNN Community!

        This should be possible using the Web API. I am not a specialist for that, but you should find enough documentation here: https://dnndocs.com/

        Happy DNNing!
        Michael

        Thanks, Michael, I'll try to solve my task via Web API. Looks very similar to use RESTfull web-services.

        Oleg.



        Veteran Member


        Posts:921
        Veteran Member

          DNNSharp has a DNN API Endpoint module that is a "RESTful easy-to-use APIs builder with little to no coding." The price is equivalent to a couple of hours of labor, and lets you get on to creating the APIs that you need, without needing to dig into the DNN details.

          You might want to give it a look, particularly as there is a free trial version available.
          Joe Craig
          DNN MVP
          Patapsco Research Group
          You are not authorized to post a reply.

          These Forums are dedicated to discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
          2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
          3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          4. No Flaming or Trolling.
          5. No Profanity, Racism, or Prejudice.
          6. Site Moderators have the final word on approving / removing a thread or post or comment.
          7. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved