auth module: add originLanding option
This commit is contained in:
@@ -122,6 +122,11 @@ in
|
|||||||
"Name of users group in Kanidm, whose members have user level access to resources (service) associated with OAuth2 client authorization.";
|
"Name of users group in Kanidm, whose members have user level access to resources (service) associated with OAuth2 client authorization.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
originLanding = mkOption {
|
||||||
|
type = types.nullOr lib.types.str;
|
||||||
|
description =
|
||||||
|
"The origin landing of the service for OAuth2 redirects.";
|
||||||
|
};
|
||||||
originUrl = mkOption {
|
originUrl = mkOption {
|
||||||
type = types.nullOr lib.types.str;
|
type = types.nullOr lib.types.str;
|
||||||
description =
|
description =
|
||||||
@@ -238,6 +243,10 @@ in
|
|||||||
if attrs.linuxGroupOfClient == null
|
if attrs.linuxGroupOfClient == null
|
||||||
then clientID
|
then clientID
|
||||||
else attrs.linuxGroupOfClient;
|
else attrs.linuxGroupOfClient;
|
||||||
|
originLanding =
|
||||||
|
if attrs.originLanding == null
|
||||||
|
then "https://${attrs.subdomain}.${config.selfprivacy.domain}/"
|
||||||
|
else attrs.originLanding;
|
||||||
scopeMaps =
|
scopeMaps =
|
||||||
if attrs.scopeMaps == null
|
if attrs.scopeMaps == null
|
||||||
then { "${usersGroup}" = [ "email" "openid" "profile" ]; }
|
then { "${usersGroup}" = [ "email" "openid" "profile" ]; }
|
||||||
@@ -282,6 +291,7 @@ in
|
|||||||
, clientID
|
, clientID
|
||||||
, displayName
|
, displayName
|
||||||
, enablePkce
|
, enablePkce
|
||||||
|
, originLanding
|
||||||
, originUrl
|
, originUrl
|
||||||
, scopeMaps
|
, scopeMaps
|
||||||
, useShortPreferredUsername
|
, useShortPreferredUsername
|
||||||
@@ -301,10 +311,9 @@ in
|
|||||||
claimMaps
|
claimMaps
|
||||||
displayName
|
displayName
|
||||||
originUrl
|
originUrl
|
||||||
|
originLanding
|
||||||
scopeMaps
|
scopeMaps
|
||||||
;
|
;
|
||||||
originLanding =
|
|
||||||
"https://${subdomain}.${config.selfprivacy.domain}/";
|
|
||||||
preferShortUsername = useShortPreferredUsername;
|
preferShortUsername = useShortPreferredUsername;
|
||||||
allowInsecureClientDisablePkce = ! enablePkce;
|
allowInsecureClientDisablePkce = ! enablePkce;
|
||||||
removeOrphanedClaimMaps = true;
|
removeOrphanedClaimMaps = true;
|
||||||
|
Reference in New Issue
Block a user