You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/authentication.mdx
+15-31Lines changed: 15 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,7 @@
2
2
title: "Authentication"
3
3
---
4
4
5
-
The Writer Framework authentication module allows you to restrict access to your application.
6
-
7
-
Framework will be able to authenticate a user through an identity provider such as Google, Microsoft, Facebook, Github, Auth0, etc.
5
+
The Writer Framework authentication module allows you to restrict access to your application. Framework will be able to authenticate a user through an identity provider such as Google, Microsoft, Facebook, Github, Auth0, etc.
8
6
9
7
<Warning>
10
8
Authentication is done before accessing the application. It is not possible to
@@ -13,19 +11,13 @@ Framework will be able to authenticate a user through an identity provider such
13
11
14
12
## Use Basic Auth
15
13
16
-
Basic Auth is a simple authentication method that uses a username and password. Authentication configuration is done in [the `server_setup.py` module](custom-server.md).
17
-
18
-
::: warning Password authentication is not safe for critical application
19
-
Basic Auth authentication is not secure for critical applications.
14
+
Basic Auth is a simple authentication method that uses a username and password. Authentication configuration is done in the [server_setup.py module](/framework/custom-server).
20
15
21
-
A user can intercept the plaintext password if https encryption fails.
22
-
It may also try to force password using brute force attacks.
23
-
24
-
For added security, it's recommended to use identity provider (Google, Microsoft, Facebook, Github, Auth0, etc.).
25
-
:::
16
+
<Warning>
17
+
Password authentication and Basic Auth are not sufficiently secure for critical applications. If HTTPS encryption fails, a user could potentially intercept passwords in plaintext. Additionally, these methods are vulnerable to brute force attacks that attempt to crack passwords. To enhance security, it is advisable to implement authentication through trusted identity providers such as Google, Microsoft, Facebook, GitHub, or Auth0.
You have to register your application into [Github](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app#registering-a-github-app)
Copy file name to clipboardExpand all lines: docs/framework/backend-driven-ui.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ with ui.find(container):
98
98
99
99
### Component methods
100
100
101
-
UI manager contains methods linked to each front-end component. For example, in previous code snippets we provide a `ui.Text` method, which is used for creating [Text components](https://www.streamsync.cloud/component-list.html#text).
101
+
UI manager contains methods linked to each front-end component. For example, in previous code snippets we provide a `ui.Text` method, which is used for creating [Text components](https://dev.writer.com/components/text).
102
102
103
103
This method expects `content: dict` as first argument, which enables you to set the field properties of the component, through corresponding keys:
104
104
```python
@@ -147,7 +147,7 @@ In addition to `content`, a set of fields which is specific to the component typ
147
147
</Note>
148
148
-**`position: int`**: Determines the display order of the component in relation to its siblings.
149
149
Position `0` means that the component is the first child of its parent.
150
-
Position `-2` is used for components – such as [sidebars](https://www.streamsync.cloud/component-list.html#sidebar) – that have a specific reserved position not related to their siblings.
150
+
Position `-2` is used for components – such as [sidebars](https://dev.writer.com/components/sidebar) – that have a specific reserved position not related to their siblings.
151
151
```python
152
152
ui.Text(
153
153
{"text": "Hello Parent, I'm your first child!"},
@@ -170,7 +170,7 @@ In addition to `content`, a set of fields which is specific to the component typ
170
170
171
171
ui.Text({"text": "My visibility depends on the @{my_var}!"}, visible="my_var")
172
172
```
173
-
-**`handlers: dict[str, callable]`**: Attaches [event handlers](https://www.streamsync.cloud/event-handlers.html) to the component. Each dictionary key represents an event, and its value is the corresponding handler.:
173
+
-**`handlers: dict[str, callable]`**: Attaches [event handlers](https://dev.writer.com/framework/event-handlersl) to the component. Each dictionary key represents an event, and its value is the corresponding handler.:
174
174
```python
175
175
defincrement(state):
176
176
state["counter"] +=1
@@ -190,7 +190,7 @@ In addition to `content`, a set of fields which is specific to the component typ
190
190
# Both approaches yield the same outcome.
191
191
```
192
192
*A component can be linked to multiple event handlers.*
193
-
-**`binding: dict[str, str]`**: Links the component to a state variable via [binding](https://www.streamsync.cloud/builder-basics.html#binding). The dictionary key is the bindable event, and the value is the state variable's name:
193
+
-**`binding: dict[str, str]`**: Links the component to a state variable via [binding](https://dev.writer.com/framework/builder-basics#binding). The dictionary key is the bindable event, and the value is the state variable's name:
194
194
```python
195
195
initial_state = wf.init_state({
196
196
"header_text": "Default Text"
@@ -269,4 +269,4 @@ with ui.refresh_with(id="cmc-column-1"):
269
269
{"text": 'To Hello World, or not to Hello World?'},
0 commit comments