Hi all...
Please let me know... How to implement "Single Sign On" concept in existing asp.net website?
What is the advantage of this ?
Thanks a lot in advance...
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 18, 2014, 8:34 PM EDT
Knowledge sharing is a good thing.
Also, others will be benefited from this.
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 3:01 AM EDT
Links provided by Ankur are good for webservice reference!
But may I know why do you think webservice will make it faster before you invest into it?
there could be many reasons for performance, it could be database response, code logic, frontend scripting?
I would suggest to get to root cause of performance before you make conclusion that Webservice will solve the problem.
Guest UserRank #259 · 9.8K reputationPosted Aug 11, 2014, 8:19 PM EDT
Now there are multiple ways to acheive SSO.
# you can do at your own by creating user table that is shared among applications
# you can take advantage of http://dotnetopenauth.net/ module for acheiving the same
you can understand basics of SSO via this blog:
http://www.codeproject.com/Articles/429166/Basics-of-Single-Sign-on-SSO
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 12, 2014, 10:24 PM EDT
Thanks a lot...
But, I did not understand any example given on these sites.
Please explain step-by-step.
Thanks a lot in advance !
Guest UserRank #259 · 9.8K reputationPosted Aug 12, 2014, 10:59 PM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 17, 2014, 10:03 PM EDT
Dear.. I can definately give you a friend request...
But, live web chat is not possible...
I do not have internet connection.
I go to cyber and access it.
Also, I want to do it on Logout Link as well.. SSO - Single Sign Out.
Please tell me... whether it is possible to do it in Visual Studio 2008 asp.net Website ??
Please help...
Thanks !!
Guest UserRank #259 · 9.8K reputationPosted Aug 18, 2014, 9:55 AM EDT
"Please accept this answer if you find it useful"
Guest UserRank #259 · 9.8K reputationPosted Aug 18, 2014, 10:35 PM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 18, 2014, 10:40 PM EDT
Can we please cut this out .....
Please explain here only naa.... What's wrong ??
I have a website developed in VS2008 and back-end as Oracle 9i.
How do I implement single sign-on and Single sign-out in this website??
The domain is is - .com.
Guest UserRank #259 · 9.8K reputationPosted Aug 18, 2014, 11:07 PM EDT
Sorry for this long thread!
To implement SSO you can do via multiple ways
- Using ads credentials, so C# provides way to read user's Ads credentials and if the user is part of your ADS (Active directory services) then the user will be authenticated automatically. Now once authenticated, you can keep user's information in session variable like Session.isAuthenticated = true and you can check this property at major events.
- As you're using Oracle, you can create User table in database and store user's name & passwords. Now you can compare against database and check user's authentication. Once authenticated you can again keep the information in session.
Session works by creating cookie inside and this cookie is passed with each interaction with the website (server). Because HTTP is stateless protocol.
Session can be saved in three ways:
- At database
- At IIS
- ASP state management service
Thanks!
Please accept answer if you find it helpful!
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 19, 2014, 1:06 AM EDT
For Logout Link ??
Ankur JainRank #2,475 · 567 reputationPosted Aug 19, 2014, 1:26 AM EDT
checkout the thread its good..
http://www.codeproject.com/Articles/429166/Basics-of-Single-Sign-on-SSO
Guest UserRank #259 · 9.8K reputationPosted Aug 19, 2014, 2:04 AM EDT
Session["username"]="";
Session["username"].Abandon();
Please accept answer if you find it helpful!
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 20, 2014, 1:24 AM EDT
Do you guys have any idea about webservices ??
How to add a webservice to this existing website ??
This site have 15 class files (more than 100 methods) and 70 webpages(.aspx) .
THe site is running very slow.
How can I add a webservice to this site and make it run faster and smoothly ??
Please help.
Thanks a lot in advance.
Ankur JainRank #2,475 · 567 reputationPosted Aug 20, 2014, 1:36 AM EDT
@Riddhi checkout these thread, it will explain you easily creating and consuming webservices..
http://www.c-sharpcorner.com/UploadFile/718fc8/creating-and-comsuming-web-service/
http://www.c-sharpcorner.com/UploadFile/0c1bb2/consuming-web-service-in-Asp-Net-web-application/
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 20, 2014, 3:03 AM EDT
Thanks Ankur...
I have seen these websites.
If I follow these , then I will have to add all the methods, classes, etc again the the service.
I want to know how to add a service in existing website.
Is there any way to do it in smaller duration time period ??
This website is really long - more than 15 class files, more than 100 methods, and nearly 70 web pages.
Thanks a lot once again.
Ankur JainRank #2,475 · 567 reputationPosted Aug 20, 2014, 3:29 AM EDT
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 3:43 AM EDT
I prefer JSON these days over XML as JSON is simple to use as Data Exchange Format. What's your opinion?
Ankur JainRank #2,475 · 567 reputationPosted Aug 20, 2014, 3:52 AM EDT
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 4:07 AM EDT
lets hear from Riddhi on performance...waiting for her response.
Ankur JainRank #2,475 · 567 reputationPosted Aug 20, 2014, 4:14 AM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 20, 2014, 4:45 AM EDT
I agree that webservice is not the only solution...
I have searched every look and corner of the code.
All queries are in stored procedures.
Lines of Code are as minimum as possible.
There are more than 15,000 records in each master tables (Total 4 master tables ) and more than 55,000 records in the transaction table.
I want to implement a webservice and check whether the site gets faster or not when published and put on IIS.
That is the only thing left out now.
Rest, all the root causes are analyzed fully.
Guest UserRank #259 · 9.8K reputationPosted Aug 20, 2014, 5:58 AM EDT
You can go and try Webservice, I can't stop that...it's good to learn about it.. but, I'm not convinced that you'll gain performance from Webservice over Webpages aspx
I suggest to dig in more...
Sorry my idea is not to restrict you trying Webservice, but I don't want to see you posting question that Webservice has also not improved performance much. So do thorough analysis....
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 21, 2014, 12:57 AM EDT
This this thorough analysis is going on from last 20 days..
Also, the response time of stored procedures is -
Minimum - 5 seconds.
Maximum -20seconds.
And please..... improve your language -"but I don't want to see you posting question..."
You are not anyone's boss here.....
Guest UserRank #259 · 9.8K reputationPosted Aug 21, 2014, 2:34 AM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Aug 24, 2014, 9:58 PM EDT
Thats ok.... no worries...
But, I guess,, there is actually no short-cut for implementing a web - service for such a big website...
No other way except for copying and pasting all methods and validations.....