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