---
title: Authenticated flows
slug: ref/authenticated-flows
docTags: 
createdAt: 2023-12-06T11:13:16.052Z
---

Authenticated flows allow a user to log in or sign up. This enables website agencies to easily provide login functionality to their existing websites.
Users that are logged in no longer need to enter their e-mail address on checkout and they will have the possibility to update their details.

:::hint{type="info"}
Authentication can be enabled by setting parameter `withauthentication` to `yes`.
:::



***

## How does authentication work

### Login

Users can either log in with their e-mail address and password or via their Facebook account (see below). They will either be redirected to the returnurl with the contactid as parameter or they will proceed to the next widget.
Reset password integration is also included, the user will receive instruction via e-mail.

::Image[]{src="https://www.ticketmatic.com/docs/tickets/selling_tickets/authenticatedwidgets/login.png" size="50" width="708" height="1102" position="flex-start" caption="Login" alt="Login" showCaption="true"}

::Image[]{src="https://www.ticketmatic.com/docs/tickets/selling_tickets/authenticatedwidgets/reset_password.png" size="50" width="328" height="403" position="flex-start" caption="Reset password" alt="Reset password" showCaption="true"}

### Signup

Users can either sign up with their e-mail address and password or via their Facebook account (see [below](docId:9uthEgl2Bfc9xPBdCP9Ob)). After sign up they will receive an e-mail containing a one-time pincode.
After entering this pincode, they are successfully signed up and automatically logged in. They will either be redirected to the returnurl with the contactid as parameter or they will proceed to the next widget.

::Image[]{src="https://www.ticketmatic.com/docs/tickets/selling_tickets/authenticatedwidgets/signup_confirm.png" size="56" width="662" height="916" position="flex-start" caption="Signup confirm" alt="Signup confirm" showCaption="true"}

## Setting up integration with Facebook

It is possible to allow users to log in and sign up using their Facebook account. To enable this create and configure a Facebook developer account and app-id.

Go to your Ticketmatic account and proceed to `Settings > Account Parameters`. Enter the APP-ID under `Authentication > Facebook` and click `Save`.
Ticketmatic will only use this account for authentication purposes. The user will need to authorize public\_profile and email permissions.

![Facebook authentication](https://www.ticketmatic.com/docs/tickets/selling_tickets/authenticatedwidgets/fb_addtoticketmatic.png "Facebook authentication")

