In your VibeCraft project, you can implement user authentication via Yandex ID, which is a single Yandex account. Your users will be able to log in to the application using their existing account without creating a separate username and password.
With the user’s permission, the application can access their account data, such as their name, email address, or avatar. This data can be used for the user dashboard and app personalization. VibeCraft will help configure the Yandex ID connector and add authentication to the project code.
Open the VibeCraft home page and select the project.
In the top-right corner, click Settings.
Open Connectors and click Connect in the Yandex ID card.
Tip
You can also start the setup directly from the chat. To do this, send the following query:
Connect the yandex-id connector and implement it in the application.
The chat will prompt you to connect the connector. Wait for the Connecting Yandex ID window to open.
In the window that opens:
In Name field, specify the app name.
In the Icon section, click Upload and select an image on your computer or click Generate to create it with VibeCraft.
The following formats are supported: JPG, PNG, GIF, WebP, SVG, and ICO. The maximum file size is 1 MB, and the recommended image size is 256 × 256 pixels.
Click Continue.
Create an application in Yandex OAuth
Sign in to Yandex OAuth using the Yandex account you are planning to use for further development.
Enter a name for your app, upload an icon, and provide a contact email address. Click Continue.
In the Application platforms step, select Web services.
Go back to the VibeCraft tab and click Continue.
VibeCraft will show the URLs to specify in Yandex OAuth:
Redirect URLs: URLs to return to the application after authentication.
Suggested Hostnames: URLs of pages with the sign-in button.
The lists may include the URLs of the preview version, published project, and custom domain. Use the values shown for your project.
Copy all URLs from the Redirect URLs section and paste them into the Redirect URI fields in Yandex OAuth. For each subsequent URL, add a field by clicking .
In the same way, copy all URLs from the Suggested Hostnames section and paste them into the Suggest Hostname fields in Yandex OAuth.
Click Continue in Yandex OAuth.
In the User data access permissions step, select the data for your app. For example, enable Access to email address to get the email. Click Continue.
Preview the sign-in window for users and click Everything is correct, create app.
This will open the page of your new application with the ClientID and Client secret properties.
Copy the data from the application’s Yandex OAuth page:
ClientID
Client secret
Click Connect and wait for the setup to complete.
Click Open connector settings. Under Connectors, your Yandex ID connector should now have the Connected status. Wait for the application environment update to complete.
Close the settings and wait for a message from VibeCraft in the chat confirming that the process is complete: once the connector is connected, the service will add authentication to the application code.
To check the connection later, click Settings in the top right corner and open the Connectors section.
Test logging in to the application
Open the Preview tab and refresh the preview version if needed by clicking .
Open the app in a new browser tab using .
Click the Yandex ID login button you added to the application.
Select the Yandex account and grant access to the data you specified when registering the application.
After authentication, make sure you are redirected back to the application and logged in with your account.
If you have trouble logging in, check the Redirect URI and Suggest Hostname addresses in Yandex OAuth and describe the issue in the VibeCraft chat.