Skip to content

Commit

Permalink
feat(ids-api): Add alive check to legal representative delegation type (
Browse files Browse the repository at this point in the history
#16284)

* Refactor alive status check into separate service. Add check to legal repr.

* Fix typo.

* Handle error when deleting from index.

* Refactor error handling when deleting from index.

* Enable using national registry v3 to check if deceased.

* Remove import.

* Make user optional.

* Add v3 config to other apis.

* chore: charts update dirty files

* chore: nx format:write update dirty files

* Fix feature flag.

* Preserve name fallback. Fix tests in public-api.

* Handle undefined input.

* Use Set instead of uniq.

* Single pass when merging.

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 3d9f462 commit ca7fe1a
Show file tree
Hide file tree
Showing 32 changed files with 2,670 additions and 2,132 deletions.
11 changes: 9 additions & 2 deletions apps/services/auth/admin-api/infra/auth-admin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import {
service,
ServiceBuilder,
} from '../../../../../infra/src/dsl/dsl'
import { Base, Client, RskProcuring } from '../../../../../infra/src/dsl/xroad'
import {
Base,
Client,
NationalRegistryAuthB2C,
RskProcuring,
} from '../../../../../infra/src/dsl/xroad'

const REDIS_NODE_CONFIG = {
dev: json([
Expand Down Expand Up @@ -84,8 +89,10 @@ export const serviceSetup = (): ServiceBuilder<'services-auth-admin-api'> => {
'/k8s/xroad/client/NATIONAL-REGISTRY/IDENTITYSERVER_SECRET',
SYSLUMENN_USERNAME: '/k8s/services-auth/SYSLUMENN_USERNAME',
SYSLUMENN_PASSWORD: '/k8s/services-auth/SYSLUMENN_PASSWORD',
NATIONAL_REGISTRY_B2C_CLIENT_SECRET:
'/k8s/services-auth/NATIONAL_REGISTRY_B2C_CLIENT_SECRET',
})
.xroad(Base, Client, RskProcuring)
.xroad(Base, Client, RskProcuring, NationalRegistryAuthB2C)
.ingress({
primary: {
host: {
Expand Down
4 changes: 3 additions & 1 deletion apps/services/auth/admin-api/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import {
import { AuthModule } from '@island.is/auth-nest-tools'
import { RskRelationshipsClientConfig } from '@island.is/clients-rsk-relationships'
import { NationalRegistryClientConfig } from '@island.is/clients/national-registry-v2'
import { NationalRegistryV3ClientConfig } from '@island.is/clients/national-registry-v3'
import { CompanyRegistryConfig } from '@island.is/clients/rsk/company-registry'
import { SyslumennClientConfig } from '@island.is/clients/syslumenn'
import { ZendeskServiceConfig } from '@island.is/clients/zendesk'
import { AuditModule } from '@island.is/nest/audit'
import { IdsClientConfig, XRoadConfig } from '@island.is/nest/config'
import { FeatureFlagConfig } from '@island.is/nest/feature-flags'
Expand All @@ -31,7 +33,6 @@ import { ProvidersModule } from './v2/providers/providers.module'
import { ScopesModule } from './v2/scopes/scopes.module'
import { ClientSecretsModule } from './v2/secrets/client-secrets.module'
import { TenantsModule } from './v2/tenants/tenants.module'
import { ZendeskServiceConfig } from '@island.is/clients/zendesk'

@Module({
imports: [
Expand Down Expand Up @@ -61,6 +62,7 @@ import { ZendeskServiceConfig } from '@island.is/clients/zendesk'
DelegationConfig,
RskRelationshipsClientConfig,
NationalRegistryClientConfig,
NationalRegistryV3ClientConfig,
CompanyRegistryConfig,
FeatureFlagConfig,
XRoadConfig,
Expand Down
2 changes: 2 additions & 0 deletions apps/services/auth/delegation-api/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { AuthModule } from '@island.is/auth-nest-tools'
import { RskRelationshipsClientConfig } from '@island.is/clients-rsk-relationships'
import { NationalRegistryClientConfig } from '@island.is/clients/national-registry-v2'
import { NationalRegistryV3ClientConfig } from '@island.is/clients/national-registry-v3'
import { CompanyRegistryConfig } from '@island.is/clients/rsk/company-registry'
import { SyslumennClientConfig } from '@island.is/clients/syslumenn'
import { AuditModule } from '@island.is/nest/audit'
Expand Down Expand Up @@ -48,6 +49,7 @@ import { ScopesModule } from './scopes/scopes.module'
FeatureFlagConfig,
IdsClientConfig,
NationalRegistryClientConfig,
NationalRegistryV3ClientConfig,
RskRelationshipsClientConfig,
CompanyRegistryConfig,
XRoadConfig,
Expand Down
Loading

0 comments on commit ca7fe1a

Please sign in to comment.