Skip to main content

For administrators

Pre-set the server address. Set fossid.server.url in the workspace settings of the repository your developers open:

  • for a single folder, in its .vscode/settings.json;
  • for a multi-root workspace, in the .code-workspace file. A folder's own .vscode/settings.json has no effect there.
{
"fossid.server.url": "https://fossid.example.com"
}

The sign-in window then shows that server, and developers can't change it there: the Server field is read-only. Clicking it shows This server was set by your administrator and can't be changed here. An open sign-in window follows changes to the setting by itself.

  • Trusted workspaces only. In an untrusted workspace (Restricted Mode), VS Code ignores the workspace's fossid.server.url. The server isn't pre-set, and developers choose it themselves.
  • An empty value pre-sets nothing. Setting fossid.server.url to "", or to only spaces, is the same as not setting it: the Server field isn't locked, and developers choose the server themselves. VS Code's Settings editor still shows the empty workspace value.
  • To change the pre-set server, for example to point one developer at another server while debugging, edit or remove fossid.server.url in the workspace settings file. It can't be changed from the sign-in window.

Without a pre-set address, the window starts on FossID's global server, https://api.scan.fossid.app.

Check your pre-set address. The old FossID address https://eu1.foss.id no longer works. FossID changes it to https://api.scan.fossid.app in a developer's user settings, but not in a workspace setting. If fossid.server.url in your workspace settings or .code-workspace file still holds the old address, replace it. FossID writes a line about it to its log (View → Output → FossID).

Microsoft Entra ID. Your Entra tenant must consent to FossID's application. It asks only for basic sign-in permissions: openid, profile, email and offline_access. You don't register an application of your own. Your organization must also have a FossID subscription, which FossID sets up. Until then, a user who signs in sees an explanation: the extension needs a FossID Software Composition Analysis platform subscription. The explanation links to pages where the user can learn more or contact Sales.

Okta. Register an OIDC application in your own Okta organization:

  • Application type: public client (no client secret), using the authorization code flow with PKCE.
  • Grant types: Authorization Code and Refresh Token. Without Refresh Token, users can sign in but have to sign in again every time the short-lived FossID sign-in expires.
  • Sign-in redirect URIs:
    • http://127.0.0.1:39820/callback
    • http://127.0.0.1:39821/callback
    • http://127.0.0.1:39822/callback
    • the same three with localhost in place of 127.0.0.1.

Then give FossID your email domain, the Okta issuer URL and the application's client ID, so that FossID can route your users to your Okta sign-in.

For a step-by-step walkthrough of the Okta console, including what to check when the first sign-in fails, see Okta setup.

API keys. People in your organization can make API keys for CI jobs and scripts on the FossID Account site, https://auth.fossid.app. You ask FossID to turn this on. If you use Okta, you also add the site to your Okta application. See API keys.