mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +01:00
(bug) Gender, Address and Birthday are not mapped properly from SSO (#365)
This commit is contained in:
parent
6092e35def
commit
9250ed720f
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## next deploy
|
## next deploy
|
||||||
|
|
||||||
|
- Fix a bug: Gender, Address and Birthday are not mapped properly from SSO (#365)
|
||||||
|
|
||||||
## v5.4.10 2022 July 05
|
## v5.4.10 2022 July 05
|
||||||
|
|
||||||
- Increased About page title's size
|
- Increased About page title's size
|
||||||
|
@ -9,6 +9,7 @@ import { mappingType } from '../../models/authentication-provider';
|
|||||||
import { BooleanMappingForm } from './boolean-mapping-form';
|
import { BooleanMappingForm } from './boolean-mapping-form';
|
||||||
import { DateMappingForm } from './date-mapping-form';
|
import { DateMappingForm } from './date-mapping-form';
|
||||||
import { StringMappingForm } from './string-mapping-form';
|
import { StringMappingForm } from './string-mapping-form';
|
||||||
|
import { FormInput } from '../form/form-input';
|
||||||
|
|
||||||
interface TypeMappingModalProps<TFieldValues, TContext extends object> {
|
interface TypeMappingModalProps<TFieldValues, TContext extends object> {
|
||||||
model: string,
|
model: string,
|
||||||
@ -38,6 +39,10 @@ export const TypeMappingModal = <TFieldValues extends FieldValues, TContext exte
|
|||||||
confirmButton={<i className="fa fa-check" />}
|
confirmButton={<i className="fa fa-check" />}
|
||||||
onConfirm={toggleModal}>
|
onConfirm={toggleModal}>
|
||||||
<span>{model} > {field} ({t('app.admin.authentication.type_mapping_modal.TYPE_expected', { TYPE: t(`app.admin.authentication.type_mapping_modal.types.${type}`) })})</span>
|
<span>{model} > {field} ({t('app.admin.authentication.type_mapping_modal.TYPE_expected', { TYPE: t(`app.admin.authentication.type_mapping_modal.types.${type}`) })})</span>
|
||||||
|
<FormInput register={register}
|
||||||
|
id={`auth_provider_mappings_attributes.${fieldMappingId}.transformation.type`}
|
||||||
|
type="hidden"
|
||||||
|
defaultValue={type} />
|
||||||
{type === 'integer' && <IntegerMappingForm register={register} control={control} fieldMappingId={fieldMappingId} />}
|
{type === 'integer' && <IntegerMappingForm register={register} control={control} fieldMappingId={fieldMappingId} />}
|
||||||
{type === 'boolean' && <BooleanMappingForm register={register} fieldMappingId={fieldMappingId} />}
|
{type === 'boolean' && <BooleanMappingForm register={register} fieldMappingId={fieldMappingId} />}
|
||||||
{type === 'date' && <DateMappingForm control={control} fieldMappingId={fieldMappingId} />}
|
{type === 'date' && <DateMappingForm control={control} fieldMappingId={fieldMappingId} />}
|
||||||
|
@ -25,10 +25,12 @@ export interface AuthenticationProviderMapping {
|
|||||||
format: 'iso8601' | 'rfc2822' | 'rfc3339' | 'timestamp-s' | 'timestamp-ms',
|
format: 'iso8601' | 'rfc2822' | 'rfc3339' | 'timestamp-s' | 'timestamp-ms',
|
||||||
true_value: string,
|
true_value: string,
|
||||||
false_value: string,
|
false_value: string,
|
||||||
mapping: {
|
mapping: [
|
||||||
|
{
|
||||||
from: string,
|
from: string,
|
||||||
to: number|string
|
to: number|string
|
||||||
}
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user