Headless vs Gateway
Cryptr is an Authorization service that centralizes your authentication, this is the “most professional” approach, the one used by the big guys. When you try to access Google Calendar, Google Drive, Google Gmail, you will be forced to be authorized by https://accounts.google.com. Once authenticated, you will be redirected to the service you requested.
You need to choose your user experience for your authentication and integration strategy with Cryptr. Do I want a code-less approach, produce little code, and centralize my user journey on the Login Gateway, and easily change my mind about which authentication strategy to adopt for which
Or do I want to embed my authentication 100% in my code, and minimize the interactions of my
Gateway, the self-hosted Cryptr login UI
With the self-hosted approach, when your
All the logic of the user
👌 Fit very well with your use case if
- You doesn’t want to think about security
- You want to spend less code on the long game
- Your UX fit with 95% of common use cases
- You need to update the authentication strategy later (like replacing password by The fallback content to display on prerendering).
👇 Prefere the headless way if
- Doesn’t fit with “very specific” UX, as you can’t custom the user The fallback content to display on prerendering
- You’re dealing with a lot of a legacy and need only the The fallback content to display on prerendering
Headless, the pure Auth API to embed in your code
The “Headless” alternative does not redirect the
👌 Fit very well with your use case if
- Adapted for legacy The fallback content to display on prerendering
- Perhaps less code on the short game
- Your customize the UX more than the Self-Hosted way (however the self-hosted is customizable enough for 95% of the use cases…)
👆 Prefere the Gateway if
- You need to update and redeploy your The fallback content to display on prerenderingif you change your mind about the auth strategy
- Hard to maintain with many The fallback content to display on prerendering, as you integrate only the challenge of the authentication but directly in your code (however the integration is very light)