sources/oauth: allow creation of user connection objects with parameters (#12195)

* sources/oauth: allow creation of user connection objects with parameters

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix web

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* tix tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add for all

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* align

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-12-18 13:28:22 +01:00
committed by GitHub
parent 1573cfbaa1
commit 1a1d499833
5 changed files with 380 additions and 22 deletions

View File

@ -70,7 +70,7 @@ export class UserSourceSettingsPage extends AKElement {
let connectionPk = -1;
if (this.connections) {
const connections = this.connections.results.filter(
(con) => con.source.slug === source.objectUid,
(con) => con.sourceObj.slug === source.objectUid,
);
if (connections.length > 0) {
connectionPk = connections[0].pk;