Skip to main content

Signing in

You sign in to FossID with your organization account, through Microsoft Entra ID or Okta. There is no separate FossID password.

No FossID account yet? You can try FossID with a free trial key. See Sign in with a trial key.

The sign-in window​

The Sign in to FossID window opens:

  • automatically, when the extension starts and you aren't signed in yet;
  • when you run FossID: Sign In, or FossID: Set Up while you aren't signed in;
  • when you select Set Up FossID in the FossID side bar, or FossID: Not configured in the status bar;
  • when you run FossID: Reconfigure after you have signed in, to change server or account.

If you close the window without signing in, it opens again the next time the extension starts. The Learn how to sign in link under the heading opens this page.

Server​

The Server field at the top is the address of your FossID server:

  • If no server is set yet, the field starts on FossID's global server, https://api.scan.fossid.app.
  • To use your organization's own server, replace the address. For example, type https://fossid.example.com.

FossID saves what you enter to your user setting fossid.server.url when you select Continue with Microsoft, Continue with Okta or Start trial.

The old FossID address https://eu1.foss.id no longer works. If your user settings still hold it, FossID changes it to https://api.scan.fossid.app when the extension starts. FossID doesn't change a workspace setting that holds the old address. It writes a line about it to the log (View → Output → FossID), and you replace the address yourself.

If your administrator has set the server for this workspace (see For administrators), the field shows that server and you can't change it. Clicking the field shows This server was set by your administrator and can't be changed here. Nothing is saved to your user settings. In an untrusted workspace (Restricted Mode), the workspace's own server is ignored, and you choose the server yourself.

Important: You can't sign in with an empty Server field. FossID shows Choose a FossID server above first. and doesn't start the sign-in.

Continue with Microsoft​

  1. Select Continue with Microsoft.
  2. Your browser opens at the Microsoft sign-in page. Choose your work account. Microsoft always asks which account to use, even if you are signed in to only one.
  3. When the browser page says Signed in to FossID, close the tab.

While you sign in, the window shows Signing in… and a Cancel sign-in button. The sign-in in the browser must finish within 5 minutes. If you close the window during sign-in, the sign-in keeps going, and finishing it in the browser still signs you in.

Continue with Okta​

  1. Select Continue with Okta. A Work email field appears.

  2. Enter your work email address (for example you@company.com), then select Continue with Okta again or press Enter.

    FossID uses your email address only to find your organization's Okta sign-in. Nothing is sent until you continue. Okta may ask for your email again; that's expected.

  3. Your browser opens at your organization's Okta sign-in page. Sign in as usual.

  4. When the browser page says Signed in to FossID, close the tab.

The Okta sign-in in the browser must finish within 5 minutes. During sign-in, FossID briefly listens on one of the local ports 39820, 39821 or 39822 to receive the answer from Okta. At least one of these ports must be free.

Sign in with a trial key​

A trial lets you try FossID on your own code before your organization buys it. You need a trial key. It starts with fosk_.

  1. In the sign-in window, select Apply for a free trial. It opens the trial page on fossid.com. When FossID approves your trial, it sends the key in an email.
  2. Select I have a trial key. A Trial key field appears.
  3. Paste the whole key, then select Start trial.

The window then shows how many days are left in your trial, for example Signed in with a trial key (12 days left). FossID keeps the key in VS Code's SecretStorage, not in your settings. FossID: Sign Out and FossID: Reset Configuration remove it.

A trial has the same features as an organization account, except FossID: Scan Workspace. If you run it, FossID shows Scan Workspace is available to FossID customers only. and doesn't scan. FossID still scans each file when you open it, save it, or it changes on disk.

Only a trial key signs you in here. An API key for CI doesn't. FossID shows This is not a trial key. Only a trial key can sign in here. To use your organization's FossID, sign in with Microsoft or Okta.

When the trial ends, FossID stops accepting the key and shows FossID no longer accepts your trial key. Your trial may have ended. To keep using FossID, contact FossID at www.fossid.com/contact.

After you sign in​

The window checks the connection to your server. It shows Checking your FossID connection to <server>… and then Connected to <server>.

From this point:

  • the FossID scanner runs in the background, and files are scanned as you open and save them;
  • the status bar shows FossID, with a check mark;
  • your AI assistants are connected (see Using FossID with AI assistants).

If the connection check fails, the window explains why. The failures are listed under When sign-in fails.

When you open the window while signed in​

The window shows how you signed in: Signed in with Okta as <email> or Signed in with Microsoft as <account>. If FossID took your sign-in from another FossID tool, it shows only Signed in. The Sign out button runs FossID: Sign Out, with the same confirmation.

If the connection check failed, a Try again button appears. If the server rejected your stored sign-in, a note explains why, and the button says Sign in again:

  • Signed in, but <server> rejected this sign-in. It may have expired, or your account may not have access. Sign in again.
  • Signed in, but <server> doesn't give this account access. Sign in again with an account that has access, or ask your administrator.

Staying signed in​

Your FossID sign-in is short-lived by design. The extension tries to renew it in the background before it expires.

If the server rejects your sign-in during a scan, FossID first tries to renew it silently and, if that works, runs the scan again without bothering you.

If renewal isn't possible, for example because your organization ended your session or your account lost access, you see:

  • the notification Your FossID sign-in was rejected by <server> — it may have expired, or your account may not have access. Sign in again., with a Sign In button;
  • FossID: Sign-in failed in the status bar.

Select Sign In (or the status bar item) and sign in again. The notification appears once per problem, not once per file.

Your sign-in is stored in the editor's secure storage (the operating system's keychain), never in settings or in workspace files.

Sharing your sign-in with other FossID tools​

After each sign-in and renewal, the extension also saves the current FossID sign-in to a file that other FossID tools on your machine can reuse:

PlatformLocation
macOS, Linux~/.config/fossid/credential.json (or $XDG_CONFIG_HOME/fossid/credential.json)
Windows%APPDATA%\FossID\credential.json

The file can be read only by your user account. It holds the short-lived FossID sign-in and its expiry time, but not the long-lived part used for renewal.

It works the other way round too. If you have never signed in to the extension, or have signed out, and you have signed in with another FossID tool such as the FossID CLI, the extension picks up that sign-in when it starts. The sign-in must still be valid, and a server address must be set.

Signing out of the extension removes this file, which signs you out of the FossID CLI on this computer too. See Signing out.

Signing out elsewhere signs the extension out too. If you sign out of the FossID CLI (fossid auth logout), or the file is deleted, the extension signs out within about a minute, or the next time it starts. You see FossID: signed out, because FossID was signed out elsewhere on this computer (for example with fossid auth logout). If you signed in with Okta, your FossID session at Okta is ended too.

Signing out​

Run FossID: Sign Out from the Command Palette and confirm with Sign Out.

  • Your FossID sign-in is removed, here and for the FossID CLI on this computer. The server address is kept, so signing back in doesn't require re-entering it.
  • Okta: your FossID session at Okta is also ended. Your browser may still be signed in to Okta itself. If FossID can't reach Okta to end the session, it warns you: FossID: signed out here, but your Okta session could not be ended. Sign out of Okta in your browser to end it everywhere.
  • Microsoft: your FossID session with Microsoft is also ended. Your browser may still be signed in to Microsoft itself.
  • Scanning stops until you sign in again.

To start over completely, run FossID: Reset Configuration. It asks for confirmation, then clears the server address you entered and your sign-in (ending any Okta or Microsoft session with FossID), signs out the FossID CLI on this computer, and opens the sign-in window again. A server address your administrator has set is kept.

Changing server​

Run FossID: Reconfigure. It opens the sign-in window, where you can change the Server field and sign in again. The new address is saved when you select Continue with Microsoft or Continue with Okta. When you change server, the findings already shown are kept. Each file is scanned again, against the new server, the next time you open, switch to or save it.

See Commands for the full list.

When sign-in fails​

The sign-in window reports problems in plain words. The most common ones:

MessageWhat it meansWhat to do
Sign-in was cancelled.You selected Cancel sign-in, or the sign-in was cancelled before it finished.Try again.
Sign-in was cancelled in the browser.You went back, cancelled or declined on Microsoft's sign-in page.Try again.
Sign-in timed out waiting for the browser. Try again.The Microsoft sign-in in the browser didn't finish within 5 minutes.Sign in again.
Choose a FossID server above first.The Server field is empty.Type your server address, then sign in.
That is not a FossID trial key. Paste the whole key from your trial email; it starts with fosk_.The text in Trial key doesn't start with fosk_.Paste the whole key from your trial email.
FossID did not accept this key. Check that you pasted all of it. If the key worked before, your trial may have ended: contact FossID at www.fossid.com/contact.FossID refused the trial key.Check the key. If it worked before, contact FossID.
<server> didn't accept your trial key. Check that the server above is the one your trial is on.The server refused the credential that the key bought.Check the address in the Server field.
Signed in, but no FossID server is set. Choose one above, then click Try again.You signed in, but no server address was set when sign-in finished.Fill in the Server field and sign in again.
Thank you for your interest in FossID for VS Code. Using the IDE extension requires a FossID Software Composition Analysis platform subscription. You can learn more at www.fossid.com/tour or contact Sales at www.fossid.com/contact.Your Microsoft sign-in worked, but your organization has no FossID subscription. The window shows Signed in with Microsoft as <you> with this note, and the two addresses in it are links.Learn more, or contact Sales. If your organization already uses FossID, ask your administrator.
Thank you for your interest in FossID for VS Code. Using the IDE extension requires a FossID Software Composition Analysis platform subscription. You can learn more at www.fossid.com/tour or contact Sales at www.fossid.com/contact. If your organization already uses FossID, no Okta sign-in is configured for <address>: try Continue with Microsoft, or ask your administrator to set up Okta.FossID doesn't know an Okta sign-in for your email domain. Either your organization has no FossID subscription, or it has one and no Okta sign-in is set up.Check the email address. If your organization uses Microsoft, choose Continue with Microsoft. If your organization already uses FossID, ask your administrator to set up Okta. Otherwise, learn more or contact Sales.
Signed in as <address>, but FossID couldn't complete sign-in for your organization. Contact your administrator.Okta signed you in, but FossID couldn't match this sign-in to your organization's setup. For example, your email domain may not be one that your organization has set up.Contact your administrator.
Couldn't reach FossID to find your organization's sign-in. Check your connection and try again.FossID's sign-in service couldn't be reached.Check your network and try again.
<server> didn't accept your organization sign-in — it may not support SSO yet, or your account may not have access. Ask whoever administers FossID.Sign-in worked, but the server you entered doesn't accept organization sign-in, or your account has no access.Check the server address. Contact your administrator.
Your FossID credential was accepted by <server>, but it isn't authorized for this operation — a capability or permission may be missing. Contact your FossID administrator.You are signed in, but your account lacks a permission on this server.Contact your FossID administrator.
Enter your work email address to continue.The Work email field is empty or not an email address.Enter your full work email.
Sign-in failed: FossID: sign-in needs one of the ports 39820, 39821, 39822 and all are in use. …Okta sign-in couldn't receive the browser's answer. These ports are registered with your identity provider, so no others can be used.Close the program using those ports and try again.
Sign-in failed: <detail>Something else went wrong during sign-in. The detail says what.Try again. If it keeps failing, contact your administrator with the detail.

Connection problems that happen later, while you work, are covered in Troubleshooting.