Moodle and Google SSO - moodle

My school is looking to use moodle as an LMS and integrating it with google apps. What I would like to implement in the integration is a single sign on where once a user is logged into google apps, they would immediately be logged into their moodle account. I want this to also be possible vice versa where a user would also be automatically logged into their google apps account if they login to moodle instead. So far the plugins I have found can only do one or the other; not both (or perhaps I do not know how to configure them this way).
I have tried using googleoauth2 and GSAML but had no luck. Can someone please help or guide me somewhere that has this implemented?
Thanks you

THe process is well-documented here: https://docs.moodle.org/29/en/Google_Apps_Integration
The OneLogin plugin (among other options) supports both SSO and Google Apps. I would suggest starting there.
The exact documentation (should you choose to proceed with this login) can be found here. You will need OpenAM as well.

Related

Flutter Auth with WiX

I am a beginner level developer. I have a WiX website and some authorized members in it. Now, I am creating an app for my website (in Flutter) and I want all of the members' login info in my app so that they could login to my app just like they login to my website. How can I do that?
I literally have no idea how to do that. I'll be glad and honored if someone would like to help me.
You can only do this through an API. I don't know if Wix has a plugin for generating API, otherwise you have to build one yourself

Xamarin.Auth Google Logout

I have a Xamarin Forms project that uses Google Authentication as described here. I can log in fine, but I can't figure out a way to truly log out of Google. The Google accounts are stored in the browser, so when I use the Presenter to display the Choose an Account list from Google, the passwords don't need to be entered. Is there a way to force the user to enter their google password every time?
If your open to switching to a different solution to OAuth. I have used the Simple Auth Package. It provides a method to log out. The documentation provides a fairly easy implementation. Once you have the log in set.Use ResetData(); to log out.
I know this does not answer your question exactly but it would be a possible solution.

Make own authorization page to access Google Apps

I hope you can direct me with my query.
I wish to create my own authentication method for users in my Google Apps for Work account. Currently I am using built in Google Authentication, however I wish to build my own authentication method in PHP, Phyton or .NET; language doesn't matter really. So I want users to go to the page I will create, then they will need to pass authentication and be logged to Google Apps.
I know SSO is the way to do it but after my research I found very little about how to achieve it with Google Apps. I mean there is tones of third party platforms like OneLogin etc but I would like to have something I build myself. Ideally I would like to have some examples of SSO which works with GAFW so I could figure out the rest myself. I read somewhere that building own SSO portal it's not a piece of cake and also found an article that you can create something based on oAuth2.0 instead. So tried research about oAuth2.0 but all documentation I found is about authenticating to the application that I build using Google Apps Credentials, where I want the opposite; to be able to access Google Apps using the app that I build.
Hope someone could direct me to some examples or documentation or explain the process of learning curve to get my head around this project of building SSO for GAFW.
If you want to write your own Auth system and become the Identity Provider (IdP), you need to use SAML as that is the only supported method for now.
Here are the step by step instructions

Facebook Login + Registration

I have looked through dev docs and and tutorials via google engine, but I am kinda lost plus I am no expert in logic or programming..
I am trying to combine with login and register on the page. If user have fb account, they can log in. and then have database store their information for shopping purpose. if not, they could register and again have database store their info.
How to combine them using PHP SDK? Also I notice that I couldn't use Javascript SDK for login and register (do I need to create two apps for login and register?)
Insight will be appreciated. thank you very much
If you are talking about the "Registration Plugin" then I've written a tutorial about this:
How To: Use Facebook Registration Plugin As Your Registration System

Login on site with other site creadentials in asp.net

I have developed asp.net MVC social networking site. I do not want to keep credentials at my database. Its user choice like stackoverflow (this forum). When we saying login the there should be option that to login with google/yahoo/facebook credentials, if user has account over there. What I have to do? is there any webservice provided by sites (google/yahoo/facebook) or what is remedy over this ? this topic in totally new for me . I expecting help from you gems..
You could implement OpenID. DotNetOpenAuth is implementation for .NET.
Sounds like OpenId would work for you (click, and more).
Library's to use in your apps.
For Facebook you want to use Facebook Connect. There is an implementation for .net on codeplex that you may want to have a look at. You may also want to look at this question.
Google uses OpenId. You can use DotNetOpenAuth to connect to google (and any other OpenId provider, such as Yahoo and twitter).
If you want to connect with Microsoft's LiveId, you may want to read this tutorial.
EDIT
There is also the option of using JanRain, a single provider that consolidates a large number of login providers. But note that JanRain is only free up to 1000 users.
There are solutions that enable authentication and features (like status updates, friends etc) from all mentioned sites, one of them is RPX from JanRain. I've experience with RPX personally and it's a great product, however, it will cost you money. They charge you per registered user etc.. I do not know of an open source solution that can compete with RPX.
If you are not interested in paying for a product you can always implement support for the mentioned sites yourself. All of them provide open API's and examples for how to do this. For Facebook it's very easy to implement Facebook Connect. Google and Yahoo both support Open ID and there are plenty of open source resources available for .NET (like http://www.dotnetopenauth.net/).
Good luck with your community!