Skip to main content

Authentication

In bohr.io, you can configure authentication for all environments of your project and specific branches by navigating to Settings ⇾ Authentication ⇾ METHOD checkbox.

bohr.io's authentication allows you to include multiple users and passwords.

In addition to Basic Authentication, bohr.io offers OAuth integration with GitHub, which allows authentication with Google, Discord, and other providers.

To do this, you need to:

  1. Log in to GitHub;
  2. Access Settings;
  3. Go to Developer Settings (the last option in the left-side menu);

developer settings

  1. Access OAuth Apps;

OAuth Apps

  1. Create an OAuth application (the highlighted sections represent mandatory formats; after filling in the gaps shown in the image, click on Register application);

Aplicação OAuth

  1. On the next screen, you will copy your client and secret keys. For the secret, you need to click on "Generate a new client secret" (tip: save the keys in a notepad because you will need them shortly - and they will become invisible from now on);

Chaves clients e secret

  1. To configure the client and secret within bohr.io, you need to log in to the platform and add a new project:

Novo projeto

  1. Choose a template (in this example, we will use the Portfolio Template);

  2. Rename the subdomain and click "Publish" at the bottom of the screen.

Renomear o subdomínio

  1. On the “Overview” screen, click the following icon:

Clique no ícone

  1. when your project appears, copy the URL "teste-bohr.bohr.io" (tip: save it in a notepad because you will need this URL);

  2. Return to the GitHub screen where you obtained the client and secret keys, and paste the URL "teste-bohr.bohr.io" into the fields Homepage URL and Authorization callback URL (don't forget to keep "bohr/signin" at the end of the URL in Authorization callback URL); then click "Update application".

Preencher Homepage URL e Authorization callback URL

  1. get back to the Overview screen on bohr.io and click on Settings;

Clique em Configurações

  1. Within the Settings page, click on Authentication;
  • in Method, select OAuth;
  • in Provider, choose GitHub;
  • enter the client and secret you saved in the notepad into their respective fields;
  • in Protect, select Front end and Back end;
  • click Save.

Método, Provedor e inserção de client e server