-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappnet.txt
70 lines (47 loc) · 1.54 KB
/
appnet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
APP ID!
Application tokens
AppNet token
Auth between activities and services (window.domain or token always?)
Indirect startActivity:
Indirect service bind
ANServer REST API (all of them used with User data!):
POST /login/registration
POST /user/login {}
POST /register-app/ {User, manifest.json} -> clientID, clientSecret(APP_TOKEN)??
POST /confirm-access/
POST /register-broadcast-reciever/
GET /error
GET /resolve-activity-intent/ {User, intent, APP_TOKEN} (AppNetToken if indirect, but only in HEADER) ->
GET /resolve-service-intent/ {User, intent, APP_TOKEN} -> ???????
POST /send-broadcast/ {User, intent, APP_TOKEN}
GET /token-to-component/ {User, componentName, APP_TOKEN}
GET /check-token/ {User, TOKEN, APP_TOKEN} -> bool
GET /installed-apps/
GET /app-components/
GET /services/
Js Client Library:
startActivity[forResult](
directStartActivity[forResult](
startService(
sendBroadcast(
oAuth server:
Resource Server:
• felhasználó intent filter regisztrálások
• felhasználó permission regisztrálások
• kliens regisztrálások
• felhasználó kliens regisztrálások
• endpointok (server apik)
JS library:
• Regisztrálás
• Activity indítások
• Service/Content provider indítások
• Broadcast reciever regisztrálások
Flows:
Activity -> appnet -> Activity - js
Activity -> appnet -> Service/CP - js
Activity -> appnet -> BR - js
Service -> appnet -> Activiy! - server
Service -> appnet -> Service - server
Service -> appnet -> BR -server
BR -> appnet -> Activity! -server
BR -> appnet -> Service -server