I have a website build by asp.net, and want to embed sensenet web app into my website(maybe using iframe?), how can I handle the authentication for sensenet? Or are there any other ways to achieve this?
You have several options to achieve this, it mostly depends on your application structure, and what parts of Sense/Net do you want to use.
I recommend to give a try to Sense/Net ECM 7.0. It's in Beta stage at the moment, but you can already use the core functionality (e.g. the Content Repository, OData API, WebDav, etc...) and it's very easy to install from NuGet to an existing Asp.NET MVC project.
There is no GUI layer included at the moment, but you can use Sense/NET directly from your Asp.Net application.
If you want to use the Sense/Net WebPages Gui, there will be a package also available soon from NuGet.
If you want to keep your website separated, you can authenticate with Basic Auth, but with the next update, SN7 will support JWT authentication
Related
I have a legacy Asp.Net Web forms app which I'm migrating to .net 5. I'm trying to migrate this piece by piece. I'm using Microsoft YARP as reverse proxy - https://github.com/microsoft/reverse-proxy which helps to retarget URLs of old application to new application without users knowing it. So this first part is done.
But now I'm facing issues where users are finding critical issues in new app and this is becoming hard to handle. So I was thinking to implement a link/button on the pages which will allow users to use legacy or new app as needed. I have seen many websites which allow to switch between classic and new version of their websites. But not sure, how should I approach this with YARP. As I see YARP configuration gets applied to all users and it is kind of static. It can be reloaded, though. In my case, User-A may want to use a page from legacy app and User-B may want to use it from new app.
I read on their site that I can write an middleware to handle custom logic but not sure how to approach this. Any guidance will be more than helpful.
You can use the migration assistant from Microsoft incremental migration tutorial to auto-setup a YARP reverse proxy.
Don't forget edit on appsettings.json, the property fallBackApp on ReverseProxy section after deploying your .NET Core application .
I want to use the Durandal SPA Template in Visual Studio 2012. Unfortunately it doesn't have Forms Authentication controllers and views etc in the template. I can add all this manually but wanted to see if anyone knew if there was a quick way via nuget or anything that will add these on for me?
Essentially I want to create a login screen before the SPA. Using an existing database which used Forms authentication before so need to keep the same.
You should be able to just install the Durandal Starter Kit from nuget on top of an existing project that includes the forms authentication bits that you need.
i have existing asp.net web application it includes membership and roles and admin section,etc. Now i would like to integrate dotnetnuke journal module in my asp.net web application.
is it posible to integrate dotnetnuke module in my web app? i download dotnetnuke source and i compiled journal module.
can any one update me how to integrate dotnetnuke module in my web app..i don't want to switch to dotnetnuke for now.
Your best bet would be to utilize the APIs to access the journal from your custom application.
The module itself is dependent upon DNN and its context (users, pages, modules, etc) in order to function properly.
I am sure you could rip a lot of that out, but I am not exactly sure what you are trying to do.
is it posible to integrate dotnetnuke module in my web app?
No.
Your only way to succeed in your quest would be to convert your ASP.NET application into the DotNetNuke application. To do that, you're going to have to merge the authentication side of the two sites. This shouldn't be impossible since DNN uses the ASP.NET authentication provider.
If you can merge the user database into a DotNetNuke installation properly, you're halfway there. You could then use the DotNetNuke page management features to load your custom pages by linking to them directly, and gradually merge your existing application.
Otherwise, you have no hope of integrating the Journal module. And you're up for hundreds if not thousands of hours of coding to try and replicate it.
I have several asp.net website projects for various sites.
Currently I want to add REST API's to these projects so I can start developing mobile apps (using HTML5/JavaScript/CSS3 and PhoneGap) that make use of these webservices.
Since WCF is far more powerful than regular asp.net webservices (among others with control over the service and authentication/authorization), I'd love to add these to my existing website project.
I did a Google search but cant find anywhere a step-by-step tutorial how this can be done. And also if there's any functionality I'd possibly loose when adding WCF functionality
I was also thinking of creating a new project specifically for WCF, but think I'd rather add it to an existing website project.
Can anyone help me with this?
Depending on exactly what your needs are and how your current web site is configured, there are two approaches.
If you are using a Web Site Project, then you should create your WCF service in a different application:
1) Create a new ASP.Net Web Application Project.
2) Add a new item to the project and select the type of WCF Service or WCF Data Service.
When you deploy this project, you will deploy it to your web server, but not as part of your web site since configuring the web.config will be a large manual effort.
If you are using a Web Application Project, then you could add the WCF Service directly to your existing project. However, I only recommend this approach if you are Silverlight applets within the web site that rely on the user's authenticated credentials.
WCF can be configured with a lot of bindings and it can be configured to return xml or json(.net 4.0). Try to create a wcf service configured to use basichttpbinding or wsHttpBinding and to format the response as json and use jquery to interact with the wcf service. This article might help you http://www.codeproject.com/KB/aspnet/Cross_Domain_Call.aspx
My asp.net application is still in development phase,is it possible to implement OPEN ID in my application?.I am new to asp.net kindly guide me how to implement open id.What are the necessary parameters i should keep in mind to improve security of my web application.Should i implement session in my project?
The open source project DotNetOpenAuth is a fantastic place to get started with integrating OpenID (and other, more up-to-date open web protocols such as OAuth 2.0) into your ASP.NET project.
They have tons of great documentation and example projects that should be able to get you started quickly.