One-time PIN login
Cloudflare Access can send a one-time PIN (OTP) to approved email addresses as an alternative to integrating an identity provider. You can simultaneously configure OTP login and the identity provider of your choice to allow users to select their own authentication method.
For example, if your team uses Okta® but you are collaborating with someone outside your organization, you can use OTP to grant access to guests.
Set up OTP
- In the Zero Trust dashboard, go to Settings > Authenticaton.
- Under Login methods, select Add new.
- Select One-time PIN.
- If your organization uses a 3rd party email scanning service (for example, Mimecast or Barracuda), add
[email protected]
to your Allow List.
To grant a user access to an application, simply add their email address to an Access policy.
Log in with OTP
To log in to Access using the one-time PIN:
- Go to the application protected by Access.
- On the Access login page, enter your email address and select Send me a code.
- If the email is allowed by an Access policy, you will receive a PIN in your inbox. This secure PIN expires 10 minutes after the initial request.
Paste the PIN into the Access login page and select Sign in.
- If the code was valid, you will be redirected to the application.
- If the code was invalid, you will see That account does not have access.
Example API Config
{ "config": {}, "type": "onetimepin", "name": "my example idp"
}