Skip to main content

14 posts tagged with "tutorial"

View All Tags

Setting up SSO with Phase Two and Keycloak

· 4 min read
GR Patil
Phase Two
info

This post was published in 2022, and some screenshots, hostnames, and product names have changed since. For current instructions, see SSO and the IdP setup wizards.

We've received a lot of support requests about the right way to set up SSO connections. We've published a 5 minute video showing you how to do it easily. Also, the script is included below in case you miss anything!

Secure Your Application With Keycloak

· 7 min read
GR Patil
Phase Two
info

This post was published in 2022, and some screenshots, hostnames, and product names have changed since. For current examples, see Securing Applications, the tutorials, and the examples repository.

There are a lot of guides out there, official and unofficial, for how to secure applications with Keycloak. The subject is rather broad, so it's difficult to know where to start. To begin, we'll be focusing on Keycloak's use of OpenID Connect (OIDC), and how to use that standard, along with some helpful libraries, to secure a simple but instructive application.

For the purposes of the sample, we'll actually be using two common applications, a frontend single-page application (SPA) written in JavaScript, and a backend REST API written for Node.js. The language we selected for the sample is JavaScript, but the principles apply no matter the implementation technology you choose.

Magic Links Guide, and 5 Minute Setup for Open Source Passwordless Authentication and Better Security

· 6 min read
GR Patil
Phase Two
info

This post was published in 2022, and some screenshots, hostnames, and product names have changed since. For current instructions, see Magic Links.

Someone who is reading this article is probably very different that the average internet user when it comes to passwords. Developers and IT admins, either because of security savvy or compliance, use password managers, multi-factor authentication (MFA) mechanisms, or prefer sites that offer passwordless authentication. Furthermore, they are keenly aware of the weaknesses in their personal "attack surface", and search for ways to balance convenience with risk.

But you are here because you want to find a way to implement magic links quickly. First, some background.

The extension is available on Github.

Set Up Email in Phase Two for a Better Branding Experience

· 3 min read
GR Patil
Phase Two
info

This post was published in 2022, and some screenshots, hostnames, and product names have changed since. For current instructions, including email branding and templates, see Email.

Email is one of the highest touch-points for users with your application. Being able to configure and customize emails is key to user management and experience.

One of the first things you will need to do when getting a Keycloak Realm ready for use is to set up your email server configuration. There are many system emails that are sent to users in the course of verifying and updating user accounts: Email address verification, magic links, password reset, account update, login failure notifications, identity provider linking, etc.

In order to provide your users with a positive experience, these messages need a way to get to them. Keycloak supports any internet reachable SMTP server. If you are currently testing, and don't have an email server or service that you currently use, SendGrid provides free accounts that allow you to send up to 100 emails per day forever. For debugging, you can also use a service like MailTrap to give you a catch-all for emails coming from Keycloak.