working redirects for google oauth and standard credentials