I am developing ASP.Net web application, and we want to integrate it with GSuite using SAML,
Gsuite will have all user information,
We have created SAML application in GSuite, and We want our asp.net to redirect to Google for authentication.
Is there any Sample code in .net
Thanks
Related
I try to SAML with Sustainsys.Saml2. I downloaded and run examples from their Github page. But all examples for ASP.NET MVC.
I develop my site with ASP.Net Web Forms. My site is service provider for SAML. I changed my web config as in the example but I can't redirect my login page to identity provider's login page.
The HttpModule sample is set up in the same way as a Web Forms app should be set up.
I have a .NET Web Forms website running in IIS (using forms authentication).
I've added a .NET Core 2.2 website as a sub application of the Web Forms site.
Is it possible to share authentication from the Web Forms site to the Core site?
I came across this: https://github.com/dazinator/AspNetCore.LegacyAuthCookieCompat
and was able to check for the forms auth cookie from the parent site when a requests hits the core sub application.
Then I could decrypt the forms auth cookie, to get the user info, and authenticate the user on the core site.
Not sure if this is ideal, because you know have to manage 2 cookies, but it seems to work.
I have setup ASP.NET Core applications to allow authentication via Office 365 before (by using the Change Authentication screen during project setup).
I would like to setup ASP.NET Core application that would allow internal users to authenticate using their Office 365 account but external users would authenticate with their OpenAuth (Facebook, Google, Twitter, etc.) account.
How do I go about setting up this multiple-authentication method? I searched StackOverflow and Google and came up empty.
If you are you trying to enable all of them in the same app then start here:
https://docs.asp.net/en/latest/security/authentication/sociallogins.html, then add OpenIdConnect with your O365 settings.
Is it possible share authentication between Asp.NET web applications and silverlight business application?
Scenario:
When uses logged in on either SL application or Asp.NET application using same browser, I want them to used active authentication. I have seen OpenId authentication can do such, But wondering can asp.net authentication is also able to do such.
Yes the authentication infrastructure can be shared between ASP.Net and SilverLight. If both the sites are under one domain, we can implement the standard authentication using ASP.Net Membership and role provider.
You can then use the WCF Authentication Service to and authorize user. This authentication is is good only for any server side functionality. If you want to authorize on client side (SilverLight) application you need to build your own infrastructure. Role and Membership provider data available can help you in that.
You can host your SL application in ASP.NET page and when somebody comes on this page do authentication. For instance, you can use FormAuthentication on the site, so when you are navigating from some page to page with Silverlight - access will be hovered by very FormAuthentication. OpenId you can use if ASP.NET app and Silverlight on different sites (domains), but if the Silverlight app is hosted on asp.net page you can also authenticate using asp.net infrastructure on server side.
we are going to develop web-application in asp .net 4.0. in this, we are using asp .net membership provider to login the application. we want to integrate facebook login with this application. user can login to this application using facebook credential and it will be authenticated in our application. Application will allow user to invite facebook friends from this web-site.
Please suggest me on this! is there any facebook API available for this or any other way.. ?
you can use this library to fully integrate your ASP.NET application with Facebook:
Facebook C# SDK
some articles to start with:
Getting Started With Facebook C# SDK
How to Retrieve User Data from Facebook Connect in ASP.NET
http://codesamplez.com/development/c-sharp-library-for-facebook-api
there is also another library called "Facebook Graph Toolkit", but I didn't use it before.
http://fgt.codeplex.com/