1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

fix: add supprot for acr_values in OIDC (#445)

This commit is contained in:
Ivar Conradi Østhus 2021-10-20 08:31:02 +02:00 committed by GitHub
parent 3dc7f22aaa
commit f61a949df2

View File

@ -179,11 +179,8 @@ function OidcAuth({ config, getOidcConfig, updateOidcConfig, unleashUrl }) {
<h3>Optional Configuration</h3> <h3>Optional Configuration</h3>
<Grid container spacing={3}> <Grid container spacing={3}>
<Grid item md={5}> <Grid item md={5}>
<strong>(Optional) Enable Single Sign-Out</strong> <strong>Enable Single Sign-Out</strong>
<p> <p>If you enable Single Sign-Out Unleash will redirect the user to the IDP as part of the Sign-out process.</p>
If you enable Single Sign-Out Unleash will redirect
the user to the IDP as part of the Sign-out process.
</p>
</Grid> </Grid>
<Grid item md={6} style={{ padding: '20px' }}> <Grid item md={6} style={{ padding: '20px' }}>
<FormControlLabel <FormControlLabel
@ -204,6 +201,25 @@ function OidcAuth({ config, getOidcConfig, updateOidcConfig, unleashUrl }) {
/> />
</Grid> </Grid>
</Grid> </Grid>
<Grid container spacing={3}>
<Grid item md={5}>
<strong>ACR Values</strong>
<p>Requested Authentication Context Class Reference values. If multiple values are specified they should be "space" separated. Will be sent as "acr_values" as
part of the authentication request. Unleash will validate the acr value in the id token claims against the list of acr values.</p>
</Grid>
<Grid item md={6}>
<TextField
onChange={updateField}
label="ACR Values"
name="acrValues"
value={data.acrValues || ''}
disabled={!data.enabled}
style={{ width: '400px' }}
variant="outlined"
size="small"
/>
</Grid>
</Grid>
<AutoCreateForm data={data} setValue={setValue} /> <AutoCreateForm data={data} setValue={setValue} />