- Advanced Workflows
OAuth is what lets you log in to a service with an existing Google or Facebook account.
Webapp.io customers often need to set a redirect target from their “test app” on an external service to allow logging in to their own accounts.
For this use case, we’ve created the
and the flow looks like this:
- User visits
- User clicks “log in with Google”
- User is redirected to a Google login page for a test application
- The “redirect URI” for that login page is “layer-oauth-target.cidemo.co”, so
the user is sent to
layer-oauth-target.cidemo.coreads a cookie to see which cidemo site the user was last on, so the user is redirected back to
- The application can now read the code and log the user in as usual.
Combining with white-labeled sites (routing)
The same can be done for layer-oauth-target.demo.example.com, in the case where
a route with