backend/v0.5.0

teamhanko/hankobackend/v0.5.0Mar 13, 2023by FlxMgdnz

AI Summary

Major release introducing OAuth SSO support for Google and GitHub, logout functionality in the frontend SDK, and improvements to WebAuthn credential handling.

Key Highlights

  • Added support for 3rd-party identity providers (OAuth SSO) starting with Google and GitHub.
  • Added logout functionality to the hanko frontend SDK.
  • Display of the last used time for WebAuthn credentials.
  • Store WebAuthn credential backup information.

New Features

  • OAuth SSO (Google, GitHub)
  • Logout SDK method
  • WebAuthn credential history
  • Credential backup info

Full Release Notes

![Product news_ v0 5 0](https://user-images.githubusercontent.com/20115649/223698775-3b510d7b-9b79-4517-b80e-05e9d8ebd766.svg)

## 3rd-party identity providers (OAuth SSO)
The leading feature of this release is support for 3rd-party identity providers, starting with **Google** and **GitHub**. Coming up next, Sign in with Apple is already in the making, and support for Microsoft accounts will follow shortly after. We've built the OAuth components in a modular way so that support for even more identity providers (e.g. Twitter, Facebook, Slack) can be added quickly by us or external contributors if there's demand for it.

During the first months of working on Hanko, we focused our efforts towards establishing a fully usable, production-ready authentication stack that is built for passkeys. With this now in place, we're able to combine the new and exciting passkey login flows with today's most popular authentication methods, i.e., "social logins".

Even with passkeys now broadly supported on all ecosystems, we think that offering sign up and login options for popular 3rd-party identity providers still makes sense, especially to convert new users quickly by allowing them to skip the "enter your email" and email verification steps. After a successful sign in with e.g. Google, users will be presented with the option to create a passkey for the app where Hanko is integrated, which can then be used for subsequent logins that no longer need to (but still can) be done through the 3rd-party.

## Updated example apps
We've updated the example apps to use the latest `hanko-elements` version and added the `hanko-profile` element to each example.

## Logout function in frontend SDK
Thanks to @irby, we now have support for the logout flow in `hanko-frontend-sdk`, making Hanko's integration even simpler.

## What's changed
* Adjust method to parse the retry after header by @bjoern-m in https://github.com/teamhanko/hanko/pull/524
* fix: frontend-sdk build and and publish now in one step by @like-a-bause in https://github.com/teamhanko/hanko/pull/530
* fix: add registry-url by @like-a-bause in https://github.com/teamhanko/hanko/pull/531
* Update hanko-elements README by @bjoern-m in https://github.com/teamhanko/hanko/pull/532
* Fix retry after error handling by @bjoern-m in https://github.com/teamhanko/hanko/pull/533
* feat: add order query for user list by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/556
* feat: store webauthn credential backup info by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/554
* fix: add same site attribute to workaround cookie by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/563
* feat: add basic metrics by @like-a-bause in https://github.com/teamhanko/hanko/pull/570
* Feat backend versioning by @like-a-bause in https://github.com/teamhanko/hanko/pull/581
* Fix: Resolve null reference exception that occurs when lang is not supplied to hanko-elements by @irby in https://github.com/teamhanko/hanko/pull/569
* fix(hanko-elements): change passcode button text by @bjoern-m in https://github.com/teamhanko/hanko/pull/586
* test: improve user handler test by @FreddyDevelop in https://github.com/teamhanko/hanko/pull/582
* feat: add third party integrations by @lfleischmann in https://github.com/teamhanko/hanko/pull/577
* Feat update examples by @like-a-bause in https://github.com/teamhanko/hanko/pull/597
* examples:  use consistent naming schema by @like-a-bause in https://github.com/teamhanko/hanko/pull/601
* Feat: display last used time of WebAuthn credentials by @bjoern-m in https://github.com/teamhanko/hanko/pull/600
* chore: update frontend-sdk 0.2.0 by @like-a-bause in https://github.com/teamhanko/hanko/pull/604
* Feat release elements by @like-a-bause in https://github.com/teamhanko/hanko/pull/605
* feat(config): allow multi word env var keys by @lfleischmann in https://github.com/teamhanko/hanko/pull/617
* feat(elements): use svg icons by @lfleischmann in https://github.com/teamhanko/hanko/pull/606
* Show loading spinner until the api attribute is defined by @bjoern-m in https://github.com/teamhanko/hanko/pull/619
* Feat: Add logout method to sdk by @irby in https://github.com/teamhanko/hanko/pull/566
* Add hanko profile to example apps by @bjoern-m in https://github.com/teamhanko/hanko/pull/618
* fix(quickstart): use correct cursor for the logout link by @bjoern-m in https://github.com/teamhanko/hanko/pull/632
* chore: optimize imports by @bjoern-m in https://github.com/teamhanko/hanko/pull/634
* Feat monorepo solve hanko elements issues by @bjoern-m in https://github.com/teamhanko/hanko/pull/638
* fix(docs): content container layout issue by @lfleischmann in https://github.com/teamhanko/hanko/pull/637
* Feat monorepo by @like-a-bause in https://github.com/teamhanko/hanko/pull/614
* fix: divider overlaps the text when the background is transparent by @bjoern-m in https://github.com/teamhanko/hanko/pull/639
* roadmap updates and small text changes by @FlxMgdnz in https://github.com/teamhanko/hanko/pull/628

**Full Changelog**: https://github.com/teamhanko/hanko/compare/v0.4.0...backend/v0.5.0