Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External application: how to share authentication and membershipExternal application: how to share authentication and membership
Previous
 
Next
New Post
1/8/2007 6:55 AM
 

I'm about to start work on a project that needs to be accessible via DNN and can also operate as a standalone app. Both apps will use the same domain. I can embed the app in an IFrame module so that it's visible in DNN. I should also be able to make sure web.config cookiename and encryption values are the same so that i can share authentication. That means that I should be able to get single sign on with DNN and the new app.

However, what I want to do is the share the DNN Membership with the new app, so that not only can I get single sign on, where the usercontext is the same for each, but I want the new app to use the roles from the DNN cookie.

Anyone got any pointers on how this can be achieved? I've already tested that I can share authentication (single sign on).

Scenario:

User A logs into DNN and has the 'Publisher' role. User A goes to the IFrame containing external app. External app knows that User A is the current user. How do I get a list of roles ('Publisher') from the cookie for User A so I can add my own logic and security routines in the new app?

many thanks,

Steve


Steve White
 
New Post
1/8/2007 9:20 AM
 
Consider using IWEB to allow the external app to check the roles of the current user (that you were able to determine using the cookie).


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/8/2007 9:31 AM
 

That looks very interesting, thanks Michael.

But I have a question: Since I can access the context user in the external app from the authentication cookie, surely I'd just need to decrypt the roles collection in the same cookie. Both apps are on the same domain. If I write the decryption routine in the external app, shouldn't I be able to get the info directly from the cookie without using a web service?


Steve White
 
New Post
1/8/2007 9:27 PM
 
You're right, since both apps are in the app domain you can do this without using web services.


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
8/20/2007 10:10 PM
 

Hi Steve,

I'm currently looking to enable the exact same scenario you described. I was wondering if you were able to do it and if there were any issues that you encountered while doing so.

Any guidance here would be greatly appreciated.

Mitch

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External application: how to share authentication and membershipExternal application: how to share authentication and membership


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out