Skip to content

Commit

Permalink
fix: Storing ACR value is inserting inum instead of displayName #1079
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Jun 9, 2023
1 parent c115409 commit 75228a5
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import GluuLabel from 'Routes/Apps/Gluu/GluuLabel'
import GluuTypeAheadForDn from 'Routes/Apps/Gluu/GluuTypeAheadForDn'
import GluuToogleRow from 'Routes/Apps/Gluu/GluuToogleRow'
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
import GluuTypeAhead from 'Routes/Apps/Gluu/GluuTypeAhead'
import GluuTypeAheadWithAdd from 'Routes/Apps/Gluu/GluuTypeAheadWithAdd'
import { useTranslation } from 'react-i18next'
import ClientShowSpontaneousScopes from './ClientShowSpontaneousScopes'
Expand Down Expand Up @@ -35,15 +36,15 @@ function ClientAdvancedPanel({ client, scripts, formik, viewOnly }) {
scripts = scripts
.filter((item) => item.scriptType == 'person_authentication')
.filter((item) => item.enabled)
.map((item) => ({ dn: item.dn, name: item.name }))
.map((item) => (item.name))
function uriValidator(uri) {
return uri
}
function getMapping(partial, total) {
if (!partial) {
partial = []
}
return total.filter((item) => partial.includes(item.dn))
return total.filter((item) => partial.includes(item))
}
const [softwareSection, setSoftwareSection] = useState(false)
const [cibaSection, setCibaSection] = useState(false)
Expand Down Expand Up @@ -159,7 +160,7 @@ function ClientAdvancedPanel({ client, scripts, formik, viewOnly }) {
rsize={9}
disabled={viewOnly}
></GluuTypeAheadWithAdd>
<GluuTypeAheadForDn
<GluuTypeAhead
name="defaultAcrValues"
label="fields.defaultAcrValues"
formik={formik}
Expand All @@ -169,8 +170,8 @@ function ClientAdvancedPanel({ client, scripts, formik, viewOnly }) {
lsize={3}
rsize={9}
disabled={viewOnly}
></GluuTypeAheadForDn>
<GluuTypeAheadForDn
></GluuTypeAhead>
<GluuTypeAhead
name="authorizedAcrValues"
label="fields.authorizedAcrValues"
formik={formik}
Expand All @@ -180,7 +181,7 @@ function ClientAdvancedPanel({ client, scripts, formik, viewOnly }) {
lsize={3}
rsize={9}
disabled={viewOnly}
></GluuTypeAheadForDn>
></GluuTypeAhead>
<GluuToogleRow
name="jansDefaultPromptLogin"
lsize={3}
Expand Down

0 comments on commit 75228a5

Please sign in to comment.