Is it possible to do form validation with oAuth?


(Ryan Archer) #1

Hi all,

 

Just a (hopefully) quick question. Is it possible to do validate a custom form in Squiz by using OAuth?

We are using forms as a voting system and when opened to public users, it opens the door to duplicates of submissions and the general misuse of forms. As we only want to have one submission per person and not multiple.

 

Just looking at a way of validating a voter's identity through linking them to a social media profile through OAuth. When they try to vote another time, they won't be able to (unless of course they have many social media profiles).

 

Just looking for a way that people need to sign into a popular social media system (Twitter, Google+, Facebook, etc) in order for the submit button to appear and complete the submission. That's what I am envisioning anyway.

 

Has anyone had experience doing this kind of thing before? I am totally new to it.


(Bart Banda) #2

Yea you could do something like that, probably would have to set up an Oauth account manager and get people to login to your site using their social media account and then place them in a user group in matrix that has access to view the form. You can follow the facebook example here to get started: http://manuals.matrix.squizsuite.net/oauth2/examples/oauth2-authentication-facebook 


(Ryan Archer) #3

Thanks Bart. As you can see in my other forum posting (that I did after this one) http://forums.squizsuite.net/index.php?showtopic=13013&hl=. I have followed that micro tutorial on the link but I'm not even sure where the user was created within the system. I'm finding the tutorial material quite a little bit short on the detail. Would love to see more detailed information regarding case usage. Obviously I don't want to have people log into the site, I want them to logon via social media just to submit the form. The site is not a blog and not really looking for people to sign up.