The reference implementation of the authentication-api.