Skip to content

Commit 1a6c278

Browse files
committed
Changed required Kanidm options to require kanidmUrl
1 parent 65f4474 commit 1a6c278

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,14 @@ Joomla_signInButtonLabel='xxx'
269269
```PHP
270270
Kanidm_clientId='xxx'
271271
Kanidm_clientSecret='xxx'
272-
Kanidm_urlAuthorize='https://KANIDM_SERVER_URL/ui/oauth2'
273-
Kanidm_urlAccessToken='https://KANIDM_SERVER_URL/oauth2/token'
274-
Kanidm_urlResourceOwnerDetails='https://KANIDM_SERVER_URL/oauth2/openid/KANIDM_CLIENT_ID/userinfo'
272+
Kanidm_kanidmUrl='xxx'
275273
Kanidm_signInButtonLabel='xxx'
276274
Kanidm_pkceMethod='S256'
277275
```
278276
+ Insert the configuration details from your Kanidm installation into the newly included configuration lines of your config.ini.php file:
279277
+ **Kanidm_clientId**='...' (the "client id" used in Kanidm)
280278
+ **Kanidm_clientSecret**='...' (value for "Client Secret" shown in Kanidm)
281-
+ **Kanidm_urlAuthorize**='...' (KANIDM_SERVER_URL: Insert the URL of your Kanidm server)
282-
+ **Kanidm_urlAccessToken**='...' (KANIDM_SERVER_URL: Insert the URL of your Kanidm server)
283-
+ **Kanidm_urlResourceOwnerDetails**='...' (KANIDM_SERVER_URL: Insert the URL of your Kanidm server. KANIDM_CLIENT_ID: Insert your Kanidm client id)
279+
+ **Kanidm_kanidmUrl**='...' (the URL of your Kanidm server)
284280
+ **Kanidm_signInButtonLabel**='...' (the label, which shall be shown for the sign in button etc.)
285281

286282
### Keycloak

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"league/oauth2-google": "=4.0.1",
2626
"stevenmaguire/oauth2-dropbox": "=3.1.0",
2727
"stevenmaguire/oauth2-keycloak": "=5.1.0",
28-
"jefferson49/oauth2-kanidm": ">=1.0.0"
28+
"jefferson49/oauth2-kanidm": ">=1.1.0"
2929
},
3030
"replace": {
3131
"guzzlehttp/guzzle": "*",

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Provider/KanidmAuthorizationProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ public static function getRequiredOptions() : array {
107107
return [
108108
'clientId',
109109
'clientSecret',
110-
'urlAuthorize',
111-
'urlAccessToken',
112-
'urlResourceOwnerDetails',
110+
'kanidmUrl',
113111
'signInButtonLabel',
114112
];
115113
}

0 commit comments

Comments
 (0)