How-to guides · Single sign-on in the docs

How to set up single sign-on with Okta

With single sign-on, people at your company sign in to PollQ through Okta instead of email codes. Okta can talk to PollQ over OpenID Connect or SAML 2.0; both work, and a PollQ organization uses one at a time. Setting either up takes about ten minutes: one app in Okta, a few values pasted into PollQ, and a test sign-in.

Updated .

OpenID Connect or SAML?

Either way, people sign in the same way and get the same access.

Before you start

  1. A PollQ organization where you're an owner. Create one from your events page (New organization) if you don't have one.
  2. A verified email domain. Single sign-on only signs in addresses at your organization's verified domains. On the organization's settings page, under Email domain, add your domain (you need to be signed in with an address at it), add the TXT record PollQ shows at your DNS provider (named _pollq-challenge.yourcompany.com), and click Verify. A domain can belong to one PollQ organization only.
  3. Okta admin access to create an app integration and assign people to it.
  4. Your Okta org URL, like https://yourcompany.okta.com. Use this one, not the admin console's address (which has -admin in it).

Set up OpenID Connect

In Okta

  1. Go to Applications → Applications and click Create App Integration.
  2. Choose OIDC - OpenID Connect, then Web Application, and click Next.
  3. Name it PollQ. Leave Use Okta-generated client ID and the Authorization Code grant selected.
  4. Under Sign-in redirect URIs, replace the example with https://pollq.app/api/auth/sso/callback. You can remove the example sign-out redirect URI; PollQ doesn't use it.
  5. Under Assignments, choose who can use PollQ: Limit access to selected groups, or Allow everyone in your organization to access. Click Save.
  6. On the app's General tab, note the Client ID. Under Client secrets, copy the secret with its copy icon (not the secret's ID, and not the masked dots).

In PollQ

  1. Open your organization's settings page and find Single sign-on. Choose OpenID Connect.
  2. Paste your Okta org URL as the Issuer URL (for example https://yourcompany.okta.com), then the Client ID and Client secret, and click Save. PollQ reads Okta's settings and tells you right away if the issuer is wrong.
  3. Click Test sign-in (see Test it).

The issuer can also be a custom authorization server, like https://yourcompany.okta.com/oauth2/default, as long as the PollQ app is allowed by its access policy. The org URL is simpler and needs no policy.

Set up SAML 2.0

In PollQ, copy two values

On your organization's settings page, under Single sign-on, choose SAML 2.0. PollQ shows your organization's own Entity ID (Audience) and ACS URL; they look like https://pollq.app/api/auth/saml/<your-organization-id> and the same with /acs at the end. Keep this page open.

In Okta

  1. Go to Applications → Applications, click Create App Integration, choose SAML 2.0 and click Next.
  2. Name it PollQ and click Next.
  3. Single sign-on URL: paste PollQ's ACS URL. Keep Use this for Recipient URL and Destination URL checked.
  4. Audience URI (SP Entity ID): paste PollQ's Entity ID.
  5. Name ID format: EmailAddress. Application username: Email.
  6. Leave the signing settings as they are: Okta signs the response and the assertion with RSA-SHA256, which PollQ requires. Click Next, choose This is an internal app that we have created, and click Finish.
  7. On the app's Assignments tab, click Assign and assign the people or groups who should use PollQ. Unlike some OpenID Connect setups, a SAML app has nobody assigned until you do this.
  8. On the Sign On tab, copy the Metadata URL.

Back in PollQ

  1. Paste the Metadata URL and click Save. PollQ reads Okta's entity ID, sign-in URL and signing certificate from it.
  2. Click Test sign-in.

PollQ takes the email address from the Name ID, so no attribute statements are needed. To show people's names, you can add attribute statements in Okta, like firstName → user.firstName and lastName → user.lastName.

Test it

Click Test sign-in on the settings page and sign in through Okta as someone assigned to the app, with an address at your verified domain. You come back to the settings page with Test sign-in worked, and the status shows Working. If something is wrong, you come back with the reason instead (see Troubleshooting).

Already signed in to Okta in that browser? Okta sends you straight back without asking for a password. To see the full sign-in your colleagues get, test in a private window.

Require single sign-on (optional)

After a successful test, you can turn on Require single sign-on. People at your verified domains can then only sign in through Okta: email codes, Google and Microsoft sign-in are turned off for them, and their other sessions end. People at other domains (guests, contractors with their own address) aren't affected. Removing someone in Okta stops new sign-ins; also remove them from the organization in PollQ to end sessions already open.

Troubleshooting

How your colleagues sign in

On the PollQ sign-in page, they type their work email and click Continue; PollQ sends them to Okta with their email filled in. Or share your organization's sign-in link, shown in the Single sign-on settings after a successful test (like https://pollq.app/sso/yourcompany.com), on your intranet or as the app tile's address. The first time, PollQ makes their account and adds them to your organization as a member; owners and admins can change their role later.