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.
OpenID Connect or SAML?
- OpenID Connect is the simpler of the two: you paste three values (issuer URL, client ID, client secret).
- SAML 2.0 needs no secret: you paste one metadata URL. Pick it if your IT team standardizes on SAML.
Either way, people sign in the same way and get the same access.
Before you start
- A PollQ organization where you're an owner. Create one from your events page (New organization) if you don't have one.
- 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. - Okta admin access to create an app integration and assign people to it.
- Your Okta org URL, like
https://yourcompany.okta.com. Use this one, not the admin console's address (which has-adminin it).
Set up OpenID Connect
In Okta
- Go to Applications → Applications and click Create App Integration.
- Choose OIDC - OpenID Connect, then Web Application, and click Next.
- Name it PollQ. Leave Use Okta-generated client ID and the Authorization Code grant selected.
- 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. - Under Assignments, choose who can use PollQ: Limit access to selected groups, or Allow everyone in your organization to access. Click Save.
- 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
- Open your organization's settings page and find Single sign-on. Choose OpenID Connect.
- 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. - 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
- Go to Applications → Applications, click Create App Integration, choose SAML 2.0 and click Next.
- Name it PollQ and click Next.
- Single sign-on URL: paste PollQ's ACS URL. Keep Use this for Recipient URL and Destination URL checked.
- Audience URI (SP Entity ID): paste PollQ's Entity ID.
- Name ID format:
EmailAddress. Application username:Email. - 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.
- 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.
- On the Sign On tab, copy the Metadata URL.
Back in PollQ
- Paste the Metadata URL and click Save. PollQ reads Okta's entity ID, sign-in URL and signing certificate from it.
- 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
- "The identity provider refused PollQ…" (OpenID Connect): the client ID or client secret doesn't match. Click Edit, paste the secret again using Okta's copy icon, and save. Okta's Reports → System Log shows the exact reason, for example
invalid_client_secret. - "…an address outside this organization's verified domains": the Okta user's email isn't at a domain your PollQ organization has verified. Verify the domain, or test as someone at it.
- Okta says you're not assigned to the app: assign the person (or their group) on the app's Assignments tab.
- PollQ says the issuer is wrong when you save: use the org URL (
https://yourcompany.okta.com), not the admin console address with-admin. - "…signs with SHA-1" (SAML): on the app's Sign On tab, make sure the active signing certificate is SHA-2, and the signature algorithm is RSA-SHA256.
- Clicking the PollQ tile in the Okta dashboard doesn't sign you in: sign-ins start at PollQ. For an OpenID Connect app, set Initiate login URI to your sign-in link (see How your colleagues sign in) and Login initiated by to Either Okta or App. For a SAML app, hide its tile (check Do not display application icon to users) and add a Bookmark App pointing at the sign-in link instead.
- Okta rotated its signing certificate (SAML): click Edit in PollQ and save the same metadata URL again so PollQ picks up the new certificate.
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.