In Identity Server 4 there are at least two places in which we can create custom claims.
By inheriting from IProfileService and doing something like the
IProfileService