sishen / omniauth-google-apps

OmniAuth strategy for Google Apps.
http://github.com/sishen/omniauth-google-apps
43 stars 17 forks source link

How validate domain input? #1

Open unlimit opened 12 years ago

unlimit commented 12 years ago

Hi!

Is it possible validate domain input before start authentication process? For example if domain is empty or domain has not valid format: /auth/google_apps?domain= /auth/google_apps?domain=123

sishen commented 12 years ago

You can setup your own form which validate user input. Just set the form action to '/auth/google_apps'.

unlimit commented 12 years ago

Even if I will create own form and add validators - /auth/google_apps will be always opened for direct input. Just enter in browser /auth/google_apps?domain=123 and all validations will be omitted!

Probably better place for validations is inside a Strategy. Is this possible?