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
* docs: authorized users
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* 📄 Update LLMs.txt snapshot for PR review
* chore: merge main
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* docs: configuration and rename to allowed callers
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* 📄 Update LLMs.txt snapshot for PR review
* 📄 Update LLMs.txt snapshot for PR review
---------
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .llms-snapshots/llms-full.txt
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -960,6 +960,37 @@ For example, setting this to `10` means only `10` new users can be created per m
960
960
961
961
Default is `100`.
962
962
963
+
---
964
+
965
+
### Allowed Callers
966
+
967
+
This option gives you full control over who's allowed to use your app.
968
+
969
+
If you enable this, only the identities you list (in user key, format, like `bj4r4-5cdop-...`) will be allowed to sign in or use any features like Datastore or Storage.
970
+
971
+
* If someone's not on the list, they can't even register.
972
+
* If they are, they can use the app just like any other user (unless they're banned).
973
+
974
+
Use this if you want to limit access to a private group — for example, for internal testing or early access users.
975
+
976
+
#### How to Get the User Identities
977
+
978
+
There are two common ways to manage the list of authorized users:
979
+
980
+
1. After sign-in
981
+
982
+
You can share your app link with a few users, let them sign in, and then add their keys to the authorized list. The user table will show their identity once they've signed in at least once.
983
+
984
+
2. Before sign-in
985
+
986
+
If you want to block all sign-ins except for those explicitly allowed before hand, start by adding your own developer ID (shown in the Console) to the list.
987
+
988
+
This activates the restriction: once at least one identity is listed, only those identities can sign in. If the list is empty, then everyone can sign in.
989
+
990
+
You can then share the app link with others. When they attempt to sign in and are blocked, you can show a message that displays their user key (e.g. using the `unsafeIdentity` function from `@junobuild/core`).
991
+
992
+
They can send you their key, and you can add them to the list manually to grant access.
993
+
963
994
# Collections
964
995
965
996
You can create or update a collection in the "Collections" tab in Juno's console under the [datastore](https://console.juno.build/datastore) view.
@@ -7070,7 +7101,7 @@ For most applications, we recommend using the default subnets and staying on the
7070
7101
7071
7102
| Subnet ID | Type | Canisters (Running/Stopped) | Nodes (Up/Total) |
For more explanation, see the related [section](/docs/build/authentication/management.md#allowed-callers) in Authentication.
7945
+
7905
7946
### Assertions
7906
7947
7907
7948
The CLI conducts several assertions when interacting with your Satellite, one of which involves monitoring the heap memory size. Typically, the CLI checks to ensure that the heap memory does not exceed the 1 GB limit before deployment. For instance, if your heap memory usage is close to 900 MB, the CLI will prompt you to confirm the deployment.
Copy file name to clipboardExpand all lines: docs/build/authentication/management.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,3 +54,34 @@ This lets you limit how many new users can sign up per minute. It's helpful to p
54
54
For example, setting this to `10` means only `10` new users can be created per minute.
55
55
56
56
Default is `100`.
57
+
58
+
---
59
+
60
+
### Allowed Callers
61
+
62
+
This option gives you full control over who's allowed to use your app.
63
+
64
+
If you enable this, only the identities you list (in user key, format, like `bj4r4-5cdop-...`) will be allowed to sign in or use any features like Datastore or Storage.
65
+
66
+
- If someone's not on the list, they can't even register.
67
+
- If they are, they can use the app just like any other user (unless they're banned).
68
+
69
+
Use this if you want to limit access to a private group — for example, for internal testing or early access users.
70
+
71
+
#### How to Get the User Identities
72
+
73
+
There are two common ways to manage the list of authorized users:
74
+
75
+
1. After sign-in
76
+
77
+
You can share your app link with a few users, let them sign in, and then add their keys to the authorized list. The user table will show their identity once they've signed in at least once.
78
+
79
+
2. Before sign-in
80
+
81
+
If you want to block all sign-ins except for those explicitly allowed before hand, start by adding your own developer ID (shown in the Console) to the list.
82
+
83
+
This activates the restriction: once at least one identity is listed, only those identities can sign in. If the list is empty, then everyone can sign in.
84
+
85
+
You can then share the app link with others. When they attempt to sign in and are blocked, you can show a message that displays their user key (e.g. using the `unsafeIdentity` function from `@junobuild/core`).
86
+
87
+
They can send you their key, and you can add them to the list manually to grant access.
0 commit comments