Виджет авторизации/en: различия между версиями

Материал из SmartPlayer
(Новая страница: «== '''Final result''' == Using the widget will allow the user to keep his data confidential and at the same time he will be able to use the autologin system.»)
Нет описания правки
 
(не показано 5 промежуточных версий 2 участников)
Строка 1: Строка 1:
== '''Description of the situation:''' ==
== '''Situation Description''' ==
Users periodically need to upload content from their website. To access the content, they often need to go through the authorization process. To avoid manual authentication and fully automate the process, an authorization widget was created.
A user may want to use content from their own website as broadcast content. To incorporate this content into the broadcast, they will likely need to go through an authentication process on their site. To avoid manual authentication and fully automate the process, an authentication widget was created.
{{Note|The widget is compatible with portals that have an authorization logic similar to Google.|warn}}
{{Note|The widget is compatible with portals that have a Google-like authentication logic|warn}}
== '''Widget Workflow Logic:''' ==
== '''Widget Operating Logic''' ==
{{Note|The widget is designed for panels that use Full HD resolution (1920X1080) and supports all image formats (JPEG, PNG).|warn}}
{{Note|The widget is designed for use in panels that utilize Full HD resolution (1920X1080) and supports all "image" formats (JPEG, PNG)|warn}}
* To Prepare the Broadcast
* Prepare the broadcast
* The user navigates to the authorization page and copies the URL of the page.
* Copy the URL link from the required web page for authentication
* On the same page, the user expands the "Login" window to full screen by pressing "F11".
* Expand the login input window using the "F11" key and take a screenshot
* The user does the same for the "Password" window.
* Similarly, expand the password input window using the "F11" key and take a screenshot
* Screenshots are saved on the user's device.
* Log into the SmartPlayer personal account and create a folder in the "Content" section for the screenshots
* The user accesses the SmartPlayer personal cabinet.
* Launch the widget following the instructions and enter the necessary data
* Inside the personal cabinet, the user creates a folder for the screenshots and transfers them there.
* Authenticate using the widget and use the content from the site in your broadcast within SmartPlayer
* The user launches the widget according to the instructions and inputs the required data.
[[File:Логика.png|thumb|center| Widget operating logic|800px]]
* The user logs in using the widget and can continue to showcase the content.
{{Note| If the user is using a laptop, pressing "F11" might not result in any action. This is because the operating system may have "Function key lock" enabled by default. In such cases, to expand the browser window, press "Fn + F11".|warn}}
'''Note: If the user is using a laptop as their device, pressing "F11" may not result in any action. This is because, by default in their operating system, the "Function panel use" option might be enabled. In such a case, to expand the browser page, they will need to press the "Fn + F11" keys.'''
== '''Widget Setup''' ==
== '''Widget Setup:''' ==
The authentication widget is set up by the user upon entry. The Google authentication page will be used as an example.
{{Note|The authorization widget is set up by the user upon login. |warn}}
=== '''Obtaining the Widget''' ===
{{Note|For example, the Google authorization page will be used. |warn}}
The user receives the widget in the form of an archive. This archive is integrated into the personal account. <br>
=== '''Widget Acquisition:''' ===
To add the widget archive, go to the "Content" section and the "Widgets" tab. Embedding is done by dragging and dropping the archive from the repository where it is stored into the personal account window.<br>
This archive is integrated into the personal cabinet. It can be added under the "Content" section, within the "Widgets" tab.
After this, the widget will be stored within the user's personal account.
Integration takes place by dragging and dropping the archive from the repository where it's stored into the personal cabinet window.
[[File:IG.png|thumb|center|Example of dragging the widget into the personal account|800px]]
<br>
Following this, the widget will be stored inside your personal cabinet
[[File:IG.png|thumb|center|An example of displaying the transfer of a widget to a personal account|150px]]
=== '''Creating a Broadcast''' ===
=== '''Creating a Broadcast''' ===
# Initially, navigate to the main panel.
Before using the widget, the user needs to create a broadcast into which the widget will be placed. Detailed information on creating a broadcast can be found on the [[Раздел "Трансляции"]] page.
# In the "Broadcasts" section, select "Create".<br>
=== '''Adding the Widget''' ===
# In the newly opened window, go to the top of the screen and click on the "gear" icon. In the dropdown menu, set the parameters for "Width" and "Height". Click save. By default, the orientation is set to horizontal at 1920x1080.
Once the user has set up the broadcast, they need to add the widget.<br>
# Click on a special icon to select the broadcasting zone.
* The user clicks on the workspace and finds the "content" line on the right side of the screen. This line features several folders with sorted content and the main folder with all content uploaded to the system.
[[File:Разрешение.png|thumb|center| Resolution setting |150px]]
* In the list, select the required widget. Using drag-and-drop, move it to the workspace.
[[File:Подготовка экрана.png|thumb|center| Broadcast preparation |150px]]
* In the "Content Settings" tab on the right side of the screen, set the duration to 10400 seconds.
=== '''Adding a Widget:''' ===
[[File:Добавление виджета в трансляцию.png|thumb|center|Finding the widget in the "Content" section|800px]]
[[File:Время 10400.png|thumb|right|Setting the broadcast duration|150px]]
[[File:Перенос виджета.png|thumb|center|Dragging the widget into the workspace|800px]]
After the user has set up the broadcast, they need to add a widget..<br>
=== '''Preparing the Background''' ===
* Click on the working field and a menu named "content" appears on the right side of the screen. This menu displays several folders with sorted content and a main folder containing all content uploaded to the system.
Open the Google authentication page in the browser and enable full-screen mode (default is F11). Then take a screenshot of the expanded screen.<br>
* The widget can be found in this list.Drag and drop it into the working field.<br>
The next step is to enter the login and go to the password entry page, similarly taking a screenshot of the screen.<br>
* Under the "Content Settings" tab on the right side of the screen, set the duration to 10400 seconds.
Create a separate folder in the "Content" tab and add the created screenshots.<br>
[[File:Добавление виджета в трансляцию.png|thumb|center|Widget search and "Content" sectio |150px]]
{{Note|Screenshots should be taken in full-screen mode, capturing the entire screen area; otherwise, the authentication fields may not align.|warn}}
[[File:Перенос виджета.png|thumb|center| Moving a widget to the working area |150px]]
{{Note|Each time the authentication widget is added and used, the correctness of the field positioning within Google should be checked. Since the Google authentication page is frequently updated, the display of the fields may change.|warn}}
=== '''Screenshot Creation''' ===
[[File:Log_and_pass.png|thumb|center|Ready backgrounds for login and password on the example of Google|800px]]
 
In the browser, open the Google authorization page, turn on full-screen mode (F11 by default) and take a full screenshot. Next, enter the login and go to the page with the password, similarly take a screenshot of the screen. Create a separate folder in the "Content" tab and add the screenshots taken there <br>
{{Note|take a screenshot in full screen mode, highlighting the entire screen area, otherwise the authorization fields will not match.|warn}}
[[File:Подложка логин и пароль.png|thumb|center|Ready-made substrates for login and password on the example of Google|150px]]
== '''Working with the Widget''' ==
== '''Working with the Widget''' ==
=== '''Widget Setup''' ===
=== '''Widget Configuration''' ===
[[File:Настраиваем виджет.png|thumb|right|Example of switching to the settings section|150px]]
[[File:Настраиваем виджет.png|thumb|center|Example of accessing the settings section|800px]]
[[File:Нужные поля.png|thumb|right|Fields that must be filled|150px]]
{{Note|The widget configuration is performed only after all the steps mentioned above in the article have been completed.|warn}}
[[File:Применить настройки.png|thumb|right|
When the user opens the widget, they will see areas on the screen that can be moved.<br>
Fields for selecting sources with content and applying settings |150px]]
In the top right corner, the user needs to click on the "gear/settings" icon to open the widget settings window.<br>
After completing all the preparatory steps, proceed to the widget settings.
In the opened settings list, it is necessary to specify the following (all values are given in pixels "px"):
In the newly opened window, you will see areas of the widget that can be moved around. Click on the "gear" icon in the upper right corner to open the widget parameters window.
* The address of the authentication page.
Entering Details:
* Fill in the "Login Field Value" and "Password Field Value" fields. Alternatively, you can fill in the data on the background screen.
* Fill in the service's authorization page address in the "Authorization Service Page Address" section..  
* Scroll down the settings page and select the folder where the screenshots of the authentication page with the login and password are stored. Be sure to click the "Save" button and then the "Apply Settings" button.
* Fill in the "Login Field Value" and "Password Field Value" sections. An alternative option is to fill in the data on the backdrop window.
* After saving the settings, the screenshots and their fields will be displayed, with the data specified in the settings indicated in the fields.
* Scroll to the bottom of the settings page and select the folder where the screenshots are stored. Click "Save" and then "Apply Settings".<br>
* A background screenshot toggle will appear in the bottom left.
* The screenshots and the fields with the data specified in the widget settings will be displayed <br>
[[File:Нужные поля.png|thumb|center|Fields that must be filled in|800px]]
* A switcher for the backdrop screenshots will appear in the bottom left.
[[File:Применить настройки.png|thumb|center|Fields for selecting content sources and applying settings|800px]]
=== '''Manipulating the Backdrops:''' ===
=== '''Interaction with Backgrounds''' ===
We select a screenshot with a login, it usually goes like "Scrennshot 1" in it we combine the contours of the "login" window and substitute it in the "login" field.<br>
The user selects the screenshot with the login. This screenshot is usually labeled as "Screenshot 1". In this screenshot, align the outlines of the "login" window and place it in the "login" field on the screenshot.<br>
The “next” button is combined with the “next” rectangle. <br>
The next step is to align the "Next" button with the "Next" field.<br>
Go to the next screenshot "Scrennshot 2". The "password" field is combined along the contour with the "password" window.<br>
Switch to the next screenshot, "Screenshot 2". The user also aligns the "password" field with the "password" field on the screenshot.<br>
On the "next" button in the screenshot with the password, we substitute "Authorize".<br>
Click the "Next" button on the password screenshot and place "Authorize".<br>
Press the "Save" button.<br>
Then click the "Save" button.<br>
Next, we give the name of our broadcast, save it and run it on the device.
The final step is for the user to name the broadcast, save it, and launch it on the device.
[[File:Окно.png|thumb|center|Window where fields are compared and substrates are switched|300px]]
[[File:Окно.png|thumb|center|Background where fields are aligned and backgrounds are switched|800px]]
=== '''Widget Appearance''' ===
=== '''Widget Appearance''' ===
The widget uses the screenshot area as the home screen. It consists of four blocks:
The widget uses the screenshot area as the workspace. It consists of four blocks:
# Login - a rectangular area with data. Email is inserted into this line. Combine with the "login" area in the screenshot
* Login - a rectangular area with data. The email is inserted into this line. Align it with the "login" area on the screenshot.
# The password is a rectangular area with data. This line contains the password. Align with the "password" area in the screenshot.
* Password - a rectangular area with data. The password is inserted into this line. Align it with the "password" area on the screenshot.
# Authorize - a rectangular area that produces a button click (clicker). We combine with the "authorization" button in the screenshot.  
* Authorize - a rectangular area that clicks the button (clicker). Align it with the "authorize" button on the screenshot.
# Next - a rectangular area that produces a button click (clicker). Combine with the "next" button in the screenshot
* Next - a rectangular area that clicks the button (clicker). Align it with the "next" button on the screenshot.
[[File:Настраиваемы области.png|thumb|center|
* Click - a rectangular area that allows for an additional click action anywhere on the widget.
An example of displaying authorization widget areas|300px]]
[[File:Кнопки_скринов.png|thumb|center|Example of the authorization widget areas|800px]]
== '''Final result''' ==
== '''Video Instruction''' ==
Using the widget will allow the user to keep his data confidential and at the same time he will be able to use the autologin system.
== '''Final Outcome''' ==
Users of this functionality will be able to automatically authenticate on their website and use the content they need from their site.

Текущая версия от 10:42, 14 мая 2024

Situation Description

A user may want to use content from their own website as broadcast content. To incorporate this content into the broadcast, they will likely need to go through an authentication process on their site. To avoid manual authentication and fully automate the process, an authentication widget was created.

The widget is compatible with portals that have a Google-like authentication logic

Widget Operating Logic

The widget is designed for use in panels that utilize Full HD resolution (1920X1080) and supports all "image" formats (JPEG, PNG)
  • Prepare the broadcast
  • Copy the URL link from the required web page for authentication
  • Expand the login input window using the "F11" key and take a screenshot
  • Similarly, expand the password input window using the "F11" key and take a screenshot
  • Log into the SmartPlayer personal account and create a folder in the "Content" section for the screenshots
  • Launch the widget following the instructions and enter the necessary data
  • Authenticate using the widget and use the content from the site in your broadcast within SmartPlayer
Widget operating logic
If the user is using a laptop, pressing "F11" might not result in any action. This is because the operating system may have "Function key lock" enabled by default. In such cases, to expand the browser window, press "Fn + F11".

Widget Setup

The authentication widget is set up by the user upon entry. The Google authentication page will be used as an example.

Obtaining the Widget

The user receives the widget in the form of an archive. This archive is integrated into the personal account.
To add the widget archive, go to the "Content" section and the "Widgets" tab. Embedding is done by dragging and dropping the archive from the repository where it is stored into the personal account window.
After this, the widget will be stored within the user's personal account.

Example of dragging the widget into the personal account

Creating a Broadcast

Before using the widget, the user needs to create a broadcast into which the widget will be placed. Detailed information on creating a broadcast can be found on the Раздел "Трансляции" page.

Adding the Widget

Once the user has set up the broadcast, they need to add the widget.

  • The user clicks on the workspace and finds the "content" line on the right side of the screen. This line features several folders with sorted content and the main folder with all content uploaded to the system.
  • In the list, select the required widget. Using drag-and-drop, move it to the workspace.
  • In the "Content Settings" tab on the right side of the screen, set the duration to 10400 seconds.
Finding the widget in the "Content" section
Dragging the widget into the workspace

Preparing the Background

Open the Google authentication page in the browser and enable full-screen mode (default is F11). Then take a screenshot of the expanded screen.
The next step is to enter the login and go to the password entry page, similarly taking a screenshot of the screen.
Create a separate folder in the "Content" tab and add the created screenshots.

Screenshots should be taken in full-screen mode, capturing the entire screen area; otherwise, the authentication fields may not align.
Each time the authentication widget is added and used, the correctness of the field positioning within Google should be checked. Since the Google authentication page is frequently updated, the display of the fields may change.
Ready backgrounds for login and password on the example of Google

Working with the Widget

Widget Configuration

Example of accessing the settings section
The widget configuration is performed only after all the steps mentioned above in the article have been completed.

When the user opens the widget, they will see areas on the screen that can be moved.
In the top right corner, the user needs to click on the "gear/settings" icon to open the widget settings window.
In the opened settings list, it is necessary to specify the following (all values are given in pixels "px"):

  • The address of the authentication page.
  • Fill in the "Login Field Value" and "Password Field Value" fields. Alternatively, you can fill in the data on the background screen.
  • Scroll down the settings page and select the folder where the screenshots of the authentication page with the login and password are stored. Be sure to click the "Save" button and then the "Apply Settings" button.
  • After saving the settings, the screenshots and their fields will be displayed, with the data specified in the settings indicated in the fields.
  • A background screenshot toggle will appear in the bottom left.
Fields that must be filled in
Fields for selecting content sources and applying settings

Interaction with Backgrounds

The user selects the screenshot with the login. This screenshot is usually labeled as "Screenshot 1". In this screenshot, align the outlines of the "login" window and place it in the "login" field on the screenshot.
The next step is to align the "Next" button with the "Next" field.
Switch to the next screenshot, "Screenshot 2". The user also aligns the "password" field with the "password" field on the screenshot.
Click the "Next" button on the password screenshot and place "Authorize".
Then click the "Save" button.
The final step is for the user to name the broadcast, save it, and launch it on the device.

Background where fields are aligned and backgrounds are switched

Widget Appearance

The widget uses the screenshot area as the workspace. It consists of four blocks:

  • Login - a rectangular area with data. The email is inserted into this line. Align it with the "login" area on the screenshot.
  • Password - a rectangular area with data. The password is inserted into this line. Align it with the "password" area on the screenshot.
  • Authorize - a rectangular area that clicks the button (clicker). Align it with the "authorize" button on the screenshot.
  • Next - a rectangular area that clicks the button (clicker). Align it with the "next" button on the screenshot.
  • Click - a rectangular area that allows for an additional click action anywhere on the widget.
Example of the authorization widget areas

Video Instruction

Final Outcome

Users of this functionality will be able to automatically authenticate on their website and use the content they need from their site.