nixos/hedgedoc: add more options for oauth2
This commit is contained in:
parent
eaad3c36f2
commit
cb7459c286
1 changed files with 63 additions and 0 deletions
|
@ -539,6 +539,69 @@ in
|
|||
Specify the OAuth token URL.
|
||||
'';
|
||||
};
|
||||
baseURL = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the OAuth base URL.
|
||||
'';
|
||||
};
|
||||
userProfileURL = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the OAuth userprofile URL.
|
||||
'';
|
||||
};
|
||||
userProfileUsernameAttr = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the name of the attribute for the username from the claim.
|
||||
'';
|
||||
};
|
||||
userProfileDisplayNameAttr = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the name of the attribute for the display name from the claim.
|
||||
'';
|
||||
};
|
||||
userProfileEmailAttr = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the name of the attribute for the email from the claim.
|
||||
'';
|
||||
};
|
||||
scope = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the OAuth scope.
|
||||
'';
|
||||
};
|
||||
providerName = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the name to be displayed for this strategy.
|
||||
'';
|
||||
};
|
||||
rolesClaim = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify the role claim name.
|
||||
'';
|
||||
};
|
||||
accessRole = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
Specify role which should be included in the ID token roles claim to grant access
|
||||
'';
|
||||
};
|
||||
clientID = mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
|
|
Loading…
Reference in a new issue