Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
kind: let the Android app enroll through Dex
Tomas Tormob26e9d63e58b
diff --git a/development/kind/dex.yaml b/development/kind/dex.yamlindex b068d31b..a5529b6a 100644--- a/development/kind/dex.yaml+++ b/development/kind/dex.yaml@@ -18,6 +18,13 @@ data:- id: sam-consoleredirectURIs:- ${CONSOLE_REDIRECT_URI}+ # The sam-node CLI and the mobile app log in through Dex's device flow or a+ # loopback browser callback; Dex rejects both unless listed here.+ - /device/callback+ # Fixed ports from internal/node/oidc.go and mobile/sam-node-app/lib/main.dart.+ - http://127.0.0.1:13000/callback+ - http://127.0.0.1:13001/callback+ - http://127.0.0.1:13002/callbackname: 'SAM Console'public: trueenablePasswordDB: truediff --git a/mobile/sam-node-app/android/app/src/debug/AndroidManifest.xml b/mobile/sam-node-app/android/app/src/debug/AndroidManifest.xmlindex 399f6981..9ff81738 100644--- a/mobile/sam-node-app/android/app/src/debug/AndroidManifest.xml+++ b/mobile/sam-node-app/android/app/src/debug/AndroidManifest.xml@@ -4,4 +4,7 @@to allow setting breakpoints, to provide hot reload, etc.--><uses-permission android:name="android.permission.INTERNET"/>+ <!-- Debug builds talk plain http to a local control plane and Dex; Flutter blocks+ non-loopback http unless the platform policy allows it. -->+ <application android:networkSecurityConfig="@xml/network_security_config"/></manifest>diff --git a/mobile/sam-node-app/android/app/src/debug/res/xml/network_security_config.xml b/mobile/sam-node-app/android/app/src/debug/res/xml/network_security_config.xmlnew file mode 100644index 00000000..2439f15c--- /dev/null+++ b/mobile/sam-node-app/android/app/src/debug/res/xml/network_security_config.xml@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="utf-8"?>+<network-security-config>+ <base-config cleartextTrafficPermitted="true" />+</network-security-config>