omniauth-google-apps icon indicating copy to clipboard operation
omniauth-google-apps copied to clipboard

How validate domain input?

Open unlimit opened this issue 13 years ago • 2 comments

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

unlimit avatar Jan 18 '12 16:01 unlimit

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

sishen avatar Jan 18 '12 16:01 sishen

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?

unlimit avatar Jan 18 '12 18:01 unlimit