SSO and Authentication
Overview
Section titled “Overview”Fencer supports multiple authentication methods so your team can sign in securely using the identity provider they already use. You can authenticate with email and password, sign in through a supported social provider or your organization’s single sign-on (SSO), or request a one-time sign-in code by email. Two-factor authentication (TOTP) adds an extra layer of protection to any account.
Prerequisites
Section titled “Prerequisites”- You must have a Fencer account. If you are joining an existing organization, you need an invitation from an organization admin.
- To enable two-factor authentication, your email address must be verified first.
How it works
Section titled “How it works”When you visit the Fencer login page, you can choose between signing in with a social provider, signing in with your organization’s SSO, or entering your email and password directly. If your email matches an existing account, Fencer automatically connects the social login to it so you do not end up with duplicate accounts. Email verification is mandatory for email/password signups; social provider signups skip this step because the provider has already verified your email.
Session tracking is enabled by default. Fencer records each active session along with the device, sign-in method, last-seen timestamp, and approximate location. You can review and revoke sessions from your user settings at any time.
Organization administrators can add sign-in rules for everyone in the organization: require MFA, require or block specific providers, and enforce SSO. See Organization Settings.
Supported sign-in providers
Section titled “Supported sign-in providers”Fencer supports the following social providers for sign-in and sign-up:
| Provider | Where it appears on the login page |
|---|---|
| Continue with Google button | |
| GitHub | Continue with GitHub button |
| GitLab | Icon button under More sign-in options |
| Bitbucket | Icon button under More sign-in options |
| Microsoft | Icon button under More sign-in options |
Your organization’s own SAML 2.0 or OpenID Connect identity provider is reached through Login with SSO instead. See Per-IdP setup guides.
Usage / Configuration
Section titled “Usage / Configuration”Signing up with email and password
Section titled “Signing up with email and password”- Navigate to the signup page (click Sign up on the login page).
- Enter your email address and click Start free trial.
- Enter and confirm a password, then enter your full name.
- If you are creating a new organization, provide an organization name. If you received an invitation, there is no organization name to enter and your email field is locked to the invited address.
- Accept the terms of service and click Create account.
- Check your inbox for the verification code Fencer sends and enter it to confirm your address. You are signed in automatically once verified.
Signing up or logging in with a social provider
Section titled “Signing up or logging in with a social provider”- On the login or signup page, click the button for your preferred provider (for example, Continue with Google or Sign up with GitHub). GitLab, Bitbucket, and Microsoft are under More sign-in options (More sign-up options on the signup page).
- You are redirected to the provider’s authorization page. Grant the requested permissions.
- If this is your first time, you are asked to complete a short signup form (full name, organization name, terms agreement) and click Sign Up. Your email comes from the provider; if you were invited, you join the inviting organization instead of naming a new one.
- After authorization, you are redirected back to Fencer and signed in.
Signing in with your organization’s SSO
Section titled “Signing in with your organization’s SSO”- On the login page, click Login with SSO.
- Enter your Organization slug (the slug from your organization URL) and click Continue. Fencer remembers the slug for your next visit.
- Confirm on the next page, then sign in with your identity provider.
Signing in with a one-time code
Section titled “Signing in with a one-time code”- On the login page, click Mail me a sign-in code.
- Enter your email address and submit the form.
- Check your inbox for the sign-in code and enter it on the verification page.
- You are signed in without needing a password.
If every organization you belong to enforces SSO, sign-in codes and password reset emails are not sent; use Login with SSO.
Switching between organizations
Section titled “Switching between organizations”If you belong to more than one organization, what happens when you switch depends on how you signed in:
- With a password, a social provider or a sign-in code: you can open any of your organizations that accepts that sign-in.
- With an organization’s SSO, or with a provider one of your organizations requires: the session belongs to the organization that sign-in was for. The first time you open another organization with no sign-in rules, Fencer shows Switch Organization. Click Continue to organization to add it to your session. You are asked once per organization each time you sign in.
Each organization’s own sign-in rules still apply after you switch:
- Enforced SSO: you must have signed in through one of that organization’s SSO connections. Otherwise you see SSO Required; click Sign in with SSO.
- A required provider: you must have signed in with that provider and match its constraint, such as the email domain. Otherwise you see Authentication Required and a sign-in button for that provider.
- A denied provider: if you signed in with a provider the organization blocks, you see Authentication Method Blocked. Sign out and sign in another way.
Requiring your own sign-in for members who arrive from another organization
Section titled “Requiring your own sign-in for members who arrive from another organization”When your organization has no sign-in rules, Continue to organization is all a session signed in through another organization’s SSO needs to open yours. To require your organization’s own sign-in for everyone, including those members, set one of these under Settings > Authentication:
- Enforce SSO on your SSO connection. Members must then sign in through your identity provider to open your organization.
- Require a sign-in provider with a constraint, such as Google with your email domain. See Requiring or blocking sign-in providers.
Keep in mind:
- Only enforced SSO counts. An SSO connection that is enabled but not enforced does not stop a session from another organization.
- Denying a provider on its own does not either. A sign-in through another organization’s SSO is not a password or social sign-in, so a deny rule does not apply to it.
- These rules apply to every sign-in, not only to members who arrive from another organization. Everyone in your organization has to meet them.
Enabling two-factor authentication (TOTP)
Section titled “Enabling two-factor authentication (TOTP)”- Click your avatar, select User settings, and open Security.
- Under Two-factor authentication, if your email is not yet verified, click Verify email and complete the email verification on the Account page first.
- Next to Authenticator app, click Enable.
- Scan the QR code with your authenticator app (such as 1Password, Aegis, or Google Authenticator), or enter the secret shown under Or enter the secret manually.
- Enter the 6-digit Verification code from your authenticator app and click Activate.
- Under Recovery codes, click View, then Copy all or Download the codes and store them securely. They allow you to regain access if you lose your authenticator device.
To turn two-factor authentication off, click Disable next to Authenticator app and confirm.
Confirming it’s you without a password
Section titled “Confirming it’s you without a password”If your account has no password and no authenticator, Fencer confirms it’s you by a recent sign-in instead. Enabling the authenticator app, adding an email address and connecting a sign-in account work for five minutes after you sign in with SSO, a social provider or a sign-in code. Enrollment only has to start in that window: after Enable shows the QR code, you have the five minutes the setup code is valid to enter the verification code.
After that window, these actions show Sign in again. Click it to repeat the sign-in you used (the same SSO connection or social provider, or a new sign-in code). Fencer then brings you back to the page you were on, and you can try again. You are never asked to set a password.
Sign in again asks you to prove it’s you, not just that the browser is still signed in:
- With SSO, your identity provider is asked to collect your credentials again, even if you are still signed in to it. For OpenID Connect, Fencer refuses the sign-in if the provider reports that it skipped this step; ask your administrator to allow forced sign-in for Fencer.
- With Microsoft, you are asked for your credentials again.
- With Google, you choose your account and confirm access again. Google, GitHub, GitLab, Bitbucket and Rippling cannot be made to ask for your password, so if you are still signed in to them in this browser, they may sign you straight back in. Lock your computer when you step away.
- With a sign-in code, you are signed out and asked to request a new code.
Managing connected sign-in accounts
Section titled “Managing connected sign-in accounts”- Open Security in user settings and find Connected sign-in accounts. Each provider shows whether it is connected.
- To add a provider, click Connect next to it (or Add account to connect another account from a provider you already use), then click Continue to provider and authorize access.
- To remove an account, click Disconnect next to it and confirm.
Managing active sessions
Section titled “Managing active sessions”- Open Security in user settings and find Active sessions.
- Each session displays the device and browser, sign-in method, approximate location, and last-seen time. Your current session is marked Current.
- Click the trash icon next to a session to revoke it. If you revoke your current session, you are logged out.
- Click Revoke all others to end every session except the one you are using.
Changing your password
Section titled “Changing your password”- Open Security in user settings and click Change next to Password.
- Enter your current password, then enter and confirm your new password.
- Click Save changes.
Setting a password for the first time
Section titled “Setting a password for the first time”When the account has no password and no authenticator:
- Open Security in user settings and click Set password next to Password, or Add password under Connected sign-in accounts.
- Fencer emails a “Set your password” link to the address on the account. Open the link and choose a password. The password is never set in the page itself.
- If every organization you belong to enforces SSO, no link is sent and Fencer offers Sign in again instead; keep signing in with SSO.
When an authenticator is already enrolled, Set password opens a form where you enter and confirm the new password.
Resetting a forgotten password
Section titled “Resetting a forgotten password”- On the login page, click Continue with email to expand the email form, then click Forgot your password? under the password field.
- Enter the email address associated with your account and click Send Password Reset.
- Follow the link in the reset email to set a new password.
Examples
Section titled “Examples”Scenario: Onboarding a new team member with Google
- An organization admin sends an invitation to
newmember@company.com. - The new team member opens the invitation link, clicks Create Account to Accept, and then Sign up with Google using that address.
- After authorizing with Google, they complete the signup form.
- They are redirected into the organization and can immediately begin using Fencer.
Scenario: Adding MFA to an existing account
- Open User settings > Security.
- Click Enable next to Authenticator app, scan the QR code, and enter the verification code.
- Click View next to Recovery codes and download them.
- On subsequent logins, Fencer prompts for the TOTP code after entering your email and password.
Troubleshooting
Section titled “Troubleshooting”- “Verify your email address first to enable 2FA”: Click Verify email under Two-factor authentication and confirm your address on the Account page before enabling TOTP.
- A social login button is not appearing: GitLab, Bitbucket, and Microsoft are hidden under More sign-in options. Expand it to see them.
- “SSO Required” when you open your organization: Your organization enforces SSO, so a session started with a password or social login cannot open it. Click Sign in with SSO, or use Login with SSO on the login page.
- “Authentication Method Blocked”: Your organization has blocked the provider you signed in with. Sign out and sign in with a different method.
- Duplicate account after social login: Fencer automatically connects social accounts to existing accounts that share the same verified email. If you encounter issues, sign in with your existing method and use Connect under Connected sign-in accounts to link the provider.
- Locked out after too many failed attempts: Fencer rate-limits login attempts. Wait 30 minutes and try again, or use the password reset flow.
- Cannot remove the only connected social account: If your account was created through a social provider and you have no password set, click Add password under Connected sign-in accounts and finish the link in the email first, then disconnect the social account.
Per-IdP setup guides
Section titled “Per-IdP setup guides”Organization administrators configure enterprise SSO and SCIM provisioning under Settings > Authentication. Both are paid features. Guides:
- General SAML & SCIM setup — works with any SAML 2.0 / SCIM 2.0 identity provider
- General OIDC setup — works with any OpenID Connect identity provider
- Okta SSO and SCIM setup
- Rippling SSO and SCIM setup
After enabling SSO, existing team members must link their accounts before they can use it — see the Linking existing users to SSO section for details.