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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesOWIN support?OWIN support?
Previous
 
Next
New Post
1/18/2017 7:04 AM
 
Hi

Do any of the DNN versions support OWIN?

I want to build a module that uses DotVVM which supports OWIN :

https://www.dotvvm.com/

But I don't know if this is possible or not. I think it's possible to use other authentication providers but OWIN?

Can anyone help?

cheers
Gus

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
1/18/2017 10:42 AM
 
No, DNN neXt was supposed to be created for .Net Core, however, development has been terminated last year.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/19/2017 4:10 AM
 
Hi Gus,

It's possible to develop DNN module that has a OWIN pipeline. I created it in following way:
- add to the web.config, under node 'appSettings' following line: <add key="owin:AutomaticAppStartup" value="true" />
- create 'Startup' class with OWIN startup attribute: [assembly: Microsoft.Owin.OwinStartup(typeof(MyModuleNamespace.Startup))]

Reference: https://www.asp.net/aspnet/overview/owin-and-katana/owin-startup-class-detection
 
New Post
1/19/2017 4:18 AM
 
Thanks Barry, that's great!

I noticed that the DNNChat module uses OWIN so realised it must be possible but I couldn't work out the steps required to make it work.

https://github.com/ChrisHammond/dnnCHAT/blob/master/Components/Startup.cs

Will have a go.

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
New Post
1/19/2017 4:39 AM
 
Hi

I installed the dnnChat module to see what it does and I noticed that it doesn't require that web.config setting.

Can we assume that OWIN startup discovery is enabled by default and that setting is only useful if you want to turn off automatic pipeline?
<code><add key="owin:AutomaticAppStartup " value="false" /></code>

"if the only tool you have is a hammer you tend to see every problem as a nail" http://www.carawaydesign.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesOWIN support?OWIN support?


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.

Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out