@monimesl/dot-cli 0.1.0-alpha.26 → 0.1.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,5 +20,13 @@ export default definePage({
|
|
|
20
20
|
this.setState({ note: errorMessage(error) });
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
+
async signInWithOidc() {
|
|
24
|
+
try {
|
|
25
|
+
const { id } = await this.dash.account.signIn({ mode: 'oidc', scopes: ['profile'] });
|
|
26
|
+
this.setState({ oidcNote: `Signed in as ${id}` });
|
|
27
|
+
} catch (error) {
|
|
28
|
+
this.setState({ oidcNote: errorMessage(error) });
|
|
29
|
+
}
|
|
30
|
+
},
|
|
23
31
|
},
|
|
24
32
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<View gap="small">
|
|
6
6
|
<Text variant="subtitle">signIn</Text>
|
|
7
|
-
<Text variant="caption" tone="muted">With mode "simple", Dash says who the person is: their full name, the phone number or email address they use Dash with, and a token
|
|
7
|
+
<Text variant="caption" tone="muted">With mode "simple", Dash says who the person is: their full name, the phone number or email address they use Dash with, and a token Monime makes from this dot's id, their Monimeer id and the nonce, with a key only it knows. The same nonce gives the same token, on any phone. It names the person, but proves nothing to the dot's server.</Text>
|
|
8
8
|
<View variant="card" gap="medium">
|
|
9
9
|
<Input label="Nonce" value="{{ nonce }}" onChange="setNonce" />
|
|
10
10
|
<Button onClick="signIn">Sign in with Dash</Button>
|
|
@@ -18,6 +18,15 @@
|
|
|
18
18
|
</View>
|
|
19
19
|
</View>
|
|
20
20
|
|
|
21
|
+
<View gap="small">
|
|
22
|
+
<Text variant="subtitle">signIn with OpenID Connect</Text>
|
|
23
|
+
<Text variant="caption" tone="muted">With mode "oidc", Dash will give an ID token the dot's server checks with Monime's keys, and only the details the person agrees to share. It isn't ready yet, so Dash says so.</Text>
|
|
24
|
+
<Button variant="secondary" onClick="signInWithOidc">Sign in with OpenID Connect</Button>
|
|
25
|
+
<If condition="{{ oidcNote }}">
|
|
26
|
+
<Notice tone="info">{{ oidcNote }}</Notice>
|
|
27
|
+
</If>
|
|
28
|
+
</View>
|
|
29
|
+
|
|
21
30
|
<If condition="{{ note }}">
|
|
22
31
|
<Notice tone="danger">{{ note }}</Notice>
|
|
23
32
|
</If>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monimesl/dot-cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.27",
|
|
4
4
|
"description": "The dotctl command: build mini apps and run them in the simulator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"typescript": "^5.9.3",
|
|
26
26
|
"uqr": "^0.1.3",
|
|
27
|
-
"@monimesl/dot-compiler": "0.1.0-alpha.
|
|
28
|
-
"@monimesl/dot-dml-parser": "0.1.0-alpha.
|
|
29
|
-
"@monimesl/dot-
|
|
30
|
-
"@monimesl/dot-
|
|
31
|
-
"@monimesl/dot-
|
|
27
|
+
"@monimesl/dot-compiler": "0.1.0-alpha.27",
|
|
28
|
+
"@monimesl/dot-dml-parser": "0.1.0-alpha.27",
|
|
29
|
+
"@monimesl/dot-simulator": "0.1.0-alpha.27",
|
|
30
|
+
"@monimesl/dot-core": "0.1.0-alpha.27",
|
|
31
|
+
"@monimesl/dot-script-parser": "0.1.0-alpha.27"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^22.20.4",
|