@@ -7,6 +7,7 @@ import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
7
7
import GluuTypeAheadWithAdd from 'Routes/Apps/Gluu/GluuTypeAheadWithAdd'
8
8
import { useTranslation } from 'react-i18next'
9
9
import { FormControlLabel , Radio , RadioGroup } from '@material-ui/core'
10
+ import GluuTypeAheadForDn from 'Routes/Apps/Gluu/GluuTypeAheadForDn'
10
11
const DOC_CATEGORY = 'openid_client'
11
12
12
13
function ClientCibaParUmaPanel ( { client, scripts, formik } ) {
@@ -33,6 +34,11 @@ function ClientCibaParUmaPanel({ client, scripts, formik }) {
33
34
const [ softwareSection , setSoftwareSection ] = useState ( false )
34
35
const [ cibaSection , setCibaSection ] = useState ( false )
35
36
37
+ const rptScripts = scripts
38
+ . filter ( ( item ) => item . scriptType == 'UMA_RPT_CLAIMS' )
39
+ . filter ( ( item ) => item . enabled )
40
+ . map ( ( item ) => ( { dn : item . dn , name : item . name } ) )
41
+
36
42
function handleCibaSection ( ) {
37
43
setCibaSection ( ! cibaSection )
38
44
}
@@ -126,6 +132,16 @@ function ClientCibaParUmaPanel({ client, scripts, formik }) {
126
132
lsize = { 3 }
127
133
rsize = { 9 }
128
134
> </ GluuTypeAheadWithAdd >
135
+ < GluuTypeAheadForDn
136
+ name = "rptClaimsScripts"
137
+ label = "fields.rpt_scripts"
138
+ formik = { formik }
139
+ value = { client . rptClaimsScripts }
140
+ options = { rptScripts }
141
+ doc_category = { DOC_CATEGORY }
142
+ doc_entry = "rptClaimsScripts"
143
+ lsize = { 3 }
144
+ > </ GluuTypeAheadForDn >
129
145
</ Container >
130
146
)
131
147
}
0 commit comments