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
2. Open the Keycloak administration console on http://localhost:8080, click on _master_ in the top left corner, _create realm_, set realm name to `mediamtx`, Save
161
+
2. Open the Keycloak web UI on http://localhost:8080, click on _Administration Console_ and log in.
162
+
163
+
3. Click on _master_ in the top left corner, _Create realm_, set realm name to `mediamtx`, _Create_.
160
164
161
-
3. Open page _Client scopes_, _create client scope_, set name to `mediamtx`, Save
165
+
4. Open page _Client scopes_, _Create client scope_, set name to `mediamtx`, _Save_.
162
166
163
-
4. Open tab _Mappers_, _Configure a new Mapper_, _User Attribute_
167
+
5. Open tab _Mappers_, _Configure a new Mapper_, _User Attribute_:
164
168
- Name: `mediamtx_permissions`
165
169
- User Attribute: `mediamtx_permissions`
166
170
- Token Claim Name: `mediamtx_permissions`
167
171
- Claim JSON Type: `JSON`
168
172
- Multivalued: `On`
169
173
170
-
Save
174
+
Save.
175
+
176
+
6. Open page _Clients_, _Create client_, set Client ID to `mediamtx`, _Next_, _Client authentication_ `On`, _Next_, _Save_.
171
177
172
-
5. Open page _Clients_, _Create client_, set Client ID to `mediamtx`, Next, Client authentication `On`, Next, Save
178
+
7. Open tab _Credentials_, copy client secret somewhere.
173
179
174
-
6. Open tab _Credentials_, copy client secret somewhere
180
+
8. Open tab _Client scopes_, set _Assigned type_ of all existing client scopes to _Optional_. This decreases the length of the JWT, since many clients impose limits on it.
0 commit comments