# Security

> How Oktul eID SSO checks a login, keeps its secrets, authenticates its public addresses, and what a Jira admin of the site is able to do with it.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/security/

Every login to your organisation passes through the app, which stands between Atlassian's login
and your eID provider. The app's source enforces each control below, and its tests cover them.

## How a login is checked

**The request from Atlassian**

- The app starts a login only for a SAML request that names the service provider entity URL and
  the assertion consumer service URL saved on its admin page. Both must be on
  `auth.atlassian.com`.

**The browser**

- Each login is tied to the browser that started it, with a cookie scripts cannot read and,
  as a fallback, a value the server made and the browser kept. The cookie's `__Host-` prefix
  stops any other address from setting it.
- A login is valid for 10 minutes and is used up by one atomic write. A replay finds nothing.
- A login that returns to a different browser ends on *Start the login again*.

**The provider's answer**

- The code is exchanged from the app's backend, with PKCE, and the request is never repeated.
- The ID token's signature is checked against the provider's keys, which the app fetches
  directly from the provider's approved host. The issuer, the audience, the expiry and the
  one-time value of this login must match.
- A provider whose discovery document names an endpoint outside its approved hosts is refused.
- The time of authentication must be at most 5 minutes old and not more than a minute before the
  login started, for eeID, Signicat, Dokobit and a Custom OIDC provider set to require it. TARA
  keeps no session, and every TARA login is a new authentication.
- The method must be one that identifies the person by a personal code, and the level of
  assurance must be high for eeID, Signicat and TARA.
- Dokobit's answer is accepted only for the session this login started.

**The person**

- The country and the personal code are brought into one form. Nothing is repaired: a value that
  does not fit is refused.
- Exactly one user must hold that identifier, be active and have a permanent ID.

**The answer to Atlassian**

- The assertion is signed with RSA-SHA256, is valid for 5 minutes, answers the one request that
  started the login, and is posted only to the saved assertion consumer service URL.
- It carries the user's email address and permanent ID. It never carries the personal code.

## A Jira admin controls single sign-on

The admin page is open to whoever holds Jira's **Administer Jira** permission on the site, a
lower tier than the organization admin who manages Atlassian Guard. With the admin page, a Jira
admin can generate a SCIM token and map their own personal code to anyone's email address, or add
a provider they control. They can then log in as any user on the single sign-on policy,
organization admins included, to every product and to Atlassian Administration.

<Aside type="caution" title="Keep Jira admin to your organization admins">
The app cannot tell a Jira admin from an organization admin. Give the **Administer Jira**
permission on this site only to people who are organization admins anyway.
</Aside>

What limits it, and what shows it:

- **The assertion cannot be sent elsewhere.** The service provider values must be on
  `auth.atlassian.com`. An admin cannot point the app at another server to collect logins.
- **Every admin change is recorded** with the admin's Atlassian account ID, when you record
  admin changes in the [audit log](../audit-log/). Turning that recording off is always recorded.
- **A personal code moved to another user** shows as the same hash on two users' events, when
  you record user changes from SCIM.
- **The check runs on the server, on every action.** Jira only hides the admin page from other
  users. The app asks Jira on each call whether the caller is a Jira admin, before it reads the
  request.

## Secrets

| Secret | Made by | Kept | Who can see it |
|---|---|---|---|
| The SAML signing key | The app | Forge's encrypted secret store | Nobody. The page shows the public certificate |
| A provider's client secret, or Dokobit's API access token | Your admin enters it | The secret store | Nobody. A Jira admin sees a hint of at most 4 characters at each end, and when it was saved |
| Signicat's signing key | The app | The secret store | Nobody. The page shows the public key |
| The SCIM token | The app | Only its SHA-256 hash, in the secret store | The admin who generates it, once |
| The key for hashing personal codes | The app | The secret store | Nobody |
| TARA's live client secret | The Estonian Information System Authority issues it | In your token relay. The app holds none | Whoever runs the relay |

No secret is in the app's code, its manifest, its logs or any answer it gives.

## The app's addresses are public

The address Atlassian Guard sends logins to and the SCIM address are reachable from the
internet, and Atlassian Forge does not authenticate calls to them. The app authenticates every
caller itself:

- **The SCIM address** with the bearer token, compared in constant time against its stored hash.
- **The login address** with the Guard values, the one-time value of each login, the tie to the
  browser and the provider's signed answer.

Anyone can send requests to the login address. Each costs the app a little work and nothing
else, and Atlassian's rate limits for the installation cap them. A sustained flood can use up
those limits and make real logins fail while it lasts.

## The pages the app serves

The chooser and the error pages are served with a strict Content Security Policy: nothing is
allowed by default, and scripts and styles only by their hash. A page with your logo or CSS may
also show an embedded image, and still loads nothing from another host. The pages are not cached
and send no referrer.

The app checks your chooser text against a list of allowed elements and rebuilds it. Nothing but
those elements reaches the page.

## Egress

The manifest names no provider host. The app calls a provider only after a Jira admin approves
its host in Atlassian's own dialog, and the backend calls only the configured provider's
discovery document, signing keys and token or status address. It uses no analytics and no
telemetry, and no Oktul server is in the path. See
[egress approval](../providers/#egress-approval).

## Logs

The app's technical log, which Atlassian shares with Oktul by default, holds the kind of each
request, its result and a fixed reason. It never holds a personal code, an email address, a
name, a token, a secret, the assertion or a request body. A personal code that matches no user
appears only as a keyed hash that cannot be turned back into the code without a key in your
installation's secret store.

Your admin can turn Oktul's access to the logs off in Atlassian Administration, under
**Connected apps**, the app, **Details**, **Logs access**.

## Reviews and reports

We reviewed the app's code against these rules on 28.09.2026, 06.10.2026 and 27.10.2026, and
the path through the token relay on 20.10.2026. On 04.11.2026 we attacked a separate
installation on our own test sites from outside and as an admin. No way was found for an
anonymous caller or a user who is not a Jira admin to obtain a login, read the users or change
the settings. The findings were fixed, each with a test. An independent penetration test has not
been done.

Oktul holds no audited security certification. Report a vulnerability through the
[Oktul Help Center](https://support.oktul.com) or to
[support@oktul.com](mailto:support@oktul.com).

## Related

- [Privacy and data handling](../privacy/)
- [Audit log](../audit-log/)
- [Recovery](../recovery/)

---

A problem or a question? Write to [support@oktul.com](mailto:support@oktul.com) or open a request in the [Help Center](https://support.oktul.com).
