File
Index
Properties
|
|
Methods
|
|
Inputs
|
|
Accessors
|
|
Methods
ngAfterContentInit
|
ngAfterContentInit()
|
|
setUseIdToken
|
setUseIdToken(useIdToken)
|
Parameters :
Name |
Optional |
useIdToken |
No
|
|
CLAIM_NAMES
|
Default value : gettext('Token claims can be checked in Audit Logs under Single sign-on type.')
|
RETRIVE_FROM_ACCESS_TOKEN
|
Default value : gettext('Retrieve from Access token')
|
RETRIVE_FROM_ID_TOKEN
|
Default value : gettext('Retrieve from ID token')
|
Accessors
useIdToken
|
getuseIdToken()
|
<div class="p-24">
<div class="row">
<div class="col-xs-12 col-sm-3 col-md-2">
<div
class="h4 text-normal text-right text-left-xs"
translate
>
User data mappings
</div>
</div>
<div class="col-xs-12 col-sm-9 col-md-10 col-lg-9">
<fieldset class="c8y-fieldset p-24">
<legend>{{ 'Source of user data mapping' | translate }}</legend>
<c8y-form-group>
<label
title="{{ RETRIVE_FROM_ACCESS_TOKEN | translate }}"
class="c8y-radio input-sm"
>
<input
type="radio"
name="userAccessMappingSource"
[checked]="!useIdToken"
(change)="setUseIdToken(false)"
/>
<span></span>
<span>{{ RETRIVE_FROM_ACCESS_TOKEN | translate }}</span>
</label>
<label
title="{{ RETRIVE_FROM_ID_TOKEN | translate }}"
class="c8y-radio input-sm"
>
<input
type="radio"
name="userAccessMappingSource"
[checked]="useIdToken"
(change)="setUseIdToken(true)"
/>
<span></span>
<span>{{ RETRIVE_FROM_ID_TOKEN | translate }}</span>
</label>
</c8y-form-group>
</fieldset>
<fieldset class="c8y-fieldset p-24">
<legend>
{{ 'Claim names' | translate }}
<button
class="btn-help btn-help--sm"
type="button"
[attr.aria-label]="'Help' | translate"
popover="{{ CLAIM_NAMES | translate }}"
placement="right"
triggers="focus"
></button>
</legend>
<div class="row">
<div class="col-sm-6">
<c8y-form-group>
<label
for="firstName"
class="control-label"
translate
>
First name
</label>
<input
class="form-control"
name="firstName"
id="firstName"
[(ngModel)]="templateModel.accessTokenToUserDataMappings.firstNameClaimName"
[placeholder]="'e.g. {{ example }}' | translate: { example: 'given_name' }"
/>
</c8y-form-group>
</div>
<div class="col-sm-6">
<c8y-form-group>
<label
for="lastName"
class="control-label"
translate
>
Last name
</label>
<input
class="form-control"
name="lastName"
id="lastName"
[(ngModel)]="templateModel.accessTokenToUserDataMappings.lastNameClaimName"
[placeholder]="'e.g. {{ example }}' | translate: { example: 'family_name' }"
/>
</c8y-form-group>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<c8y-form-group>
<label
for="email"
class="control-label"
translate
>
Email
</label>
<input
class="form-control"
name="email"
id="email"
[(ngModel)]="templateModel.accessTokenToUserDataMappings.emailClaimName"
[placeholder]="'e.g. {{ example }}' | translate: { example: 'email' }"
/>
</c8y-form-group>
</div>
<div class="col-sm-6">
<c8y-form-group>
<label
for="phoneNumber"
class="control-label"
translate
>
Phone number
</label>
<input
class="form-control"
name="phoneNumber"
id="phoneNumber"
[(ngModel)]="templateModel.accessTokenToUserDataMappings.phoneNumberClaimName"
[placeholder]="'e.g. {{ example }}' | translate: { example: 'phone_number' }"
/>
</c8y-form-group>
</div>
</div>
</fieldset>
</div>
</div>
</div>