File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 126
126
callbackURL = "https://${ cfg . domain } /oauth2/callback" ;
127
127
clientID = "oauth2_proxy" ; # - is not allowed in environment variables
128
128
in {
129
- dex = {
130
- enable = lib . mkIf cfg . configureOAuth2Proxy true ;
131
- # the user has no other option to accept this and all clients are internal anyway
132
- settings . oauth2 . skipApprovalScreen = true ;
133
- } ;
129
+ # the user has no other option to accept this and all clients are internal anyway
130
+ dex . settings . oauth2 . skipApprovalScreen = true ;
134
131
135
132
oauth2_proxy = lib . mkIf cfg . configureOAuth2Proxy {
136
133
enable = true ;
148
145
} ;
149
146
} ;
150
147
151
- portunus . dex . oidcClients = lib . mkIf cfg . configureOAuth2Proxy [ {
152
- inherit callbackURL ;
153
- id = clientID ;
154
- } ] ;
148
+ portunus . dex = lib . mkIf cfg . configureOAuth2Proxy {
149
+ enable = true ;
150
+ oidcClients = [ {
151
+ inherit callbackURL ;
152
+ id = clientID ;
153
+ } ] ;
154
+ } ;
155
155
} ;
156
156
157
157
security . ldap = lib . mkIf cfg . ldapPreset {
You can’t perform that action at this time.
0 commit comments