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
server: add application capabilities for ui and DCR (#47)
Add new Application capabilities to limit access to the UI and dynamic client registration (DCR) endpoints.
This also unifies the structs used to UnmarshalCapJSON into a single struct with fields for all current uses.
Fixes: #44, #16, #17
Signed-off-by: Benson Wong <[email protected]>
Copy file name to clipboardExpand all lines: README.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
@@ -12,6 +12,7 @@
12
12
- A Tailscale network (tailnet) with magicDNS and HTTPS enabled
13
13
- A Tailscale authentication key from your tailnet
14
14
- (Recommended) Docker installed on your system
15
+
- Ability to set an Application capability grant
15
16
16
17
## Running tsidp
17
18
@@ -71,6 +72,36 @@ _If you're running tsidp for the first time, you may not be able to access it in
71
72
72
73
</details>
73
74
75
+
## Setting an Application Capability Grant
76
+
77
+
tsidp requires an [Application capability grant](https://tailscale.com/kb/1537/grants-app-capabilities) to allow access to the admin UI and dynamic client registration endpoints.
78
+
79
+
This is a permissive grant that is suitable only for testing purposes:
80
+
81
+
```json
82
+
"grants": [
83
+
{
84
+
"src": ["*"],
85
+
"dst": ["*"],
86
+
"app": {
87
+
"tailscale.com/cap/tsidp": [
88
+
{
89
+
// STS controls
90
+
"users": ["*"],
91
+
"resources": ["*"],
92
+
93
+
// allow access to UI
94
+
"allow_admin_ui": true,
95
+
96
+
// allow dynamic client registration
97
+
"allow_dcr": true,
98
+
},
99
+
],
100
+
},
101
+
},
102
+
],
103
+
```
104
+
74
105
## Application Configuration Guides
75
106
76
107
tsidp can be used as IdP server for any application that supports custom OIDC providers.
0 commit comments