Skip to content

Commit

Permalink
Merge pull request #154 from pagopa/IOPID-2470
Browse files Browse the repository at this point in the history
[#IOPID-2470 #IOPID-2471] io-web-profile-backend migration into io-auth-n-identity-domain
  • Loading branch information
giamma1295 authored Jan 8, 2025
2 parents 424813a + 9a547cf commit 8e6fbf9
Show file tree
Hide file tree
Showing 90 changed files with 6,829 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-eyes-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"io-web-profile": patch
---

Migrate io-web-profile from it's original repo to this domain mororepo
4 changes: 4 additions & 0 deletions .github/ci_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ io-lollipop:
# container edit
- docker/functions-node-20/*
- docker/io-lollipop/*
io-web-profile:
- "apps/io-web-profile/**/*.ts"
# package.json, function.json, tsconfig.json, ...
- "apps/io-web-profile/**/*.json"
9 changes: 9 additions & 0 deletions .github/workflows/code_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ jobs:
with:
projectBaseDir: apps/io-lollipop/

- name: SonarCloud io-web-profile scan
if: steps.sonarcloud_filter.outputs.io-web-profile == 'true'
uses: SonarSource/sonarcloud-github-action@19888635fa64d24e533d388efe8264402dfd721b
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: apps/io-web-profile/

e2e:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion apps/io-lollipop/api/external.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.1
info:
version: 1.13.2
version: 1.13.3
title: IO Lollipop Function Lollipop Consumer API
x-logo:
url: https://io.italia.it/assets/img/io-logo-blue.svg
Expand Down
2 changes: 1 addition & 1 deletion apps/io-lollipop/api/internal.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.1
info:
version: 1.13.2
version: 1.13.3
title: IO Lollipop Function API
x-logo:
url: https://io.italia.it/assets/img/io-logo-blue.svg
Expand Down
4 changes: 0 additions & 4 deletions apps/io-lollipop/proxies.json

This file was deleted.

20 changes: 20 additions & 0 deletions apps/io-web-profile/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
env: {
es2021: true,
node: true
},
extends: ["eslint-config-monorepo/index.js"],
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: __dirname,
},
ignorePatterns: [
"*.yaml",
"src/generated/**/*",
"dist/**/*",
],
rules: {
"max-classes-per-file": "off",
}
};
15 changes: 15 additions & 0 deletions apps/io-web-profile/.funcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.js.map
*.ts
.git*
.vscode*
.circleci*
.prettierrc
local.settings.json*
tsconfig.json
tslint.json
README.md
yarn.lock
jest.config.js
__*
Dangerfile.js
CODEOWNERS
1 change: 1 addition & 0 deletions apps/io-web-profile/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.12.2
223 changes: 223 additions & 0 deletions apps/io-web-profile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
# io-web-profile

## 1.8.1

### Patch Changes

- [#IOPID-1887] Magic Link token blacklist [`#43`](https://github.com/pagopa/io-web-profile-backend/pull/43)
- [EC-55] Migrate Identity to new modules [`#41`](https://github.com/pagopa/io-web-profile-backend/pull/41)

## 1.8.0

### Minor Changes

> 14 February 2024
## 1.8.0-RELEASE

> 14 February 2024
- [IOPID-1389] - MagicLink Issuing AuditLog [`#37`](https://github.com/pagopa/io-web-profile-backend/pull/37)
- Bump version to 1.8.0 [skip ci][`de00e39`](https://github.com/pagopa/io-web-profile-backend/commit/de00e3911deb7ac1e0ef3ece2e0ee598bb703d87)

## 1.7.0

### Minor Changes

> 12 February 2024
## 1.7.0-RELEASE

> 12 February 2024
- [IOPID-1383] - Unlock-Session AuditLog [`#36`](https://github.com/pagopa/io-web-profile-backend/pull/36)
- IOPID-1383 [`c85d68e`](https://github.com/pagopa/io-web-profile-backend/commit/c85d68e6893124185388ca5696e5bacb9caafdb9)
- Bump version to 1.7.0 [skip ci][`e8c80eb`](https://github.com/pagopa/io-web-profile-backend/commit/e8c80eb512350977e8ef8b9a6fb0cb1afbe4b740)

## 1.6.0

### Minor Changes

> 7 February 2024
## 1.6.0-RELEASE

> 7 February 2024
- [IOPID-1382] - Lock-Session AuditLog [`#35`](https://github.com/pagopa/io-web-profile-backend/pull/35)
- [#IOPID-1411] changed action group [`#33`](https://github.com/pagopa/io-web-profile-backend/pull/33)
- Bump version to 1.6.0 [skip ci][`3177146`](https://github.com/pagopa/io-web-profile-backend/commit/3177146aae8a0d1265f6b8aefdcb70ff337e6130)

## 1.5.0

### Minor Changes

> 5 February 2024
## 1.5.0-RELEASE

> 5 February 2024
- [IOPID-1381] - LogOut AuditLog [`#34`](https://github.com/pagopa/io-web-profile-backend/pull/34)
- [#IOPID-1315] add opex dashboard for external openapi [`#32`](https://github.com/pagopa/io-web-profile-backend/pull/32)
- IOPID-1381 [`5dceb0e`](https://github.com/pagopa/io-web-profile-backend/commit/5dceb0edeca54938fb2ede8e74e16934bac9e58b)
- Pr Review [`6e131e1`](https://github.com/pagopa/io-web-profile-backend/commit/6e131e19f1d2b6c1591708695d8022c137e1a788)
- Pr Review [`987d961`](https://github.com/pagopa/io-web-profile-backend/commit/987d96140938bed1be0564f799e36aaa1eb8f4a9)

## 1.4.0

### Minor Changes

> 22 January 2024
## 1.4.0-RELEASE

> 22 January 2024
- [IOPID-1375] : Adding IP on AudtiLog tag [`#31`](https://github.com/pagopa/io-web-profile-backend/pull/31)
- Bump version to 1.4.0 [skip ci][`f7e617b`](https://github.com/pagopa/io-web-profile-backend/commit/f7e617b3f1eacff9f0df885a78f87f133090ae19)
- Adding IP on AudtiLog Tag [`ba5bb4e`](https://github.com/pagopa/io-web-profile-backend/commit/ba5bb4e0984cc2b3b9601afd5920573f88fc358d)

## 1.3.0

### Minor Changes

> 19 January 2024
## 1.3.0-RELEASE

> 19 January 2024
- Bump version to 1.3.0 [skip ci][`e05d8f8`](https://github.com/pagopa/io-web-profile-backend/commit/e05d8f829e0c467f0a13617aec1a554fbab51165)

## 1.2.1

### Patch Changes

> 18 January 2024
## 1.2.1-RELEASE

> 18 January 2024
- [IOPID-1254] : Adding JWE IAT [`#30`](https://github.com/pagopa/io-web-profile-backend/pull/30)
- Bump version to 1.2.1 [skip ci][`91ec05f`](https://github.com/pagopa/io-web-profile-backend/commit/91ec05fce13987a01dde6059ab933f262302b1eb)
- PR Review [`c1d22e3`](https://github.com/pagopa/io-web-profile-backend/commit/c1d22e3d06d10547f27586ce6b92137f98d8f7c9)
- Adding JWE IAT and using in exchange auditlog [`70ad5f9`](https://github.com/pagopa/io-web-profile-backend/commit/70ad5f987830d344c0ef3efedf05b5c626062325)

## 1.2.0

### Minor Changes

> 18 January 2024
## 1.2.0-RELEASE

> 18 January 2024
- [#IOPID-1254] Read client IP using middleware [`#29`](https://github.com/pagopa/io-web-profile-backend/pull/29)
- read client IP using middleware [`b27167d`](https://github.com/pagopa/io-web-profile-backend/commit/b27167d55dd357a69ee37c0b7e89f27b558c32d5)
- Bump version to 1.2.0 [skip ci][`f11365a`](https://github.com/pagopa/io-web-profile-backend/commit/f11365a3fffd154739d48293e1a75f65e07bc4fd)
- Apply suggestions from code review [`0434989`](https://github.com/pagopa/io-web-profile-backend/commit/04349897524036afa382127f7fe9ccf7ffe307a7)

## 1.1.0

### Minor Changes

> 17 January 2024
## 1.1.0-RELEASE

> 17 January 2024
- [IOPID-1254] : Audit Log [`#28`](https://github.com/pagopa/io-web-profile-backend/pull/28)
- Adding Audit Log Util and using in Exchange Handler [`8555d07`](https://github.com/pagopa/io-web-profile-backend/commit/8555d078e521cf35574e5d1d3094eb4954a367f8)
- Adding AUDIT_LOG_CONNECTION_STRING env var [`514aa86`](https://github.com/pagopa/io-web-profile-backend/commit/514aa86a2a91b06936fbc2c9d48df54211dda80e)
- PR Review - blobCLient as fn dependency [`352a5d3`](https://github.com/pagopa/io-web-profile-backend/commit/352a5d386c771f3a64e1bc96ac78db05b709b57a)

## 1.0.5

### Patch Changes

> 3 January 2024
## 1.0.5-RELEASE

> 3 January 2024
- [IOPID-1224] : Removing minimum spidLevel for session-state [`#27`](https://github.com/pagopa/io-web-profile-backend/pull/27)
- Removing canSeeProfile [`12b002d`](https://github.com/pagopa/io-web-profile-backend/commit/12b002db522caf43fa0dd0b67b73bd82275c2871)
- Bump version to 1.0.5 [skip ci][`4e209ba`](https://github.com/pagopa/io-web-profile-backend/commit/4e209baa3b7f21cf2f7290d64313b2053c23a6bc)
- Removing test [`105bde9`](https://github.com/pagopa/io-web-profile-backend/commit/105bde90c7078bfb4b6ff7747e2f554506d62622)

## 1.0.4

### Patch Changes

> 13 October 2023
## 1.0.4-RELEASE

> 13 October 2023
- [#IOPID-867, #IOPID-985] fix internal openapi spec [`#25`](https://github.com/pagopa/io-web-profile-backend/pull/25)
- Bump version to 1.0.4 [skip ci][`d4dce5e`](https://github.com/pagopa/io-web-profile-backend/commit/d4dce5e614e34bdff5a05e0a364444aa7112a496)

## 1.0.3

### Patch Changes

> 2 October 2023
## 1.0.3-RELEASE

> 2 October 2023
- [IOPID-877] : use of public key to generate magic link JWE [`#23`](https://github.com/pagopa/io-web-profile-backend/pull/23)
- [IOPID-917] : make exchange token valid to see profile [`#22`](https://github.com/pagopa/io-web-profile-backend/pull/22)
- Bump version to 1.0.3 [skip ci][`956e1df`](https://github.com/pagopa/io-web-profile-backend/commit/956e1df85ec27424066782365b72a2c98f4db1e4)

## 1.0.2

### Patch Changes

> 28 September 2023
## 1.0.2-RELEASE

> 28 September 2023
- fix: Move logout response to 204 [`#21`](https://github.com/pagopa/io-web-profile-backend/pull/21)
- move logout response to 204 [`cf55279`](https://github.com/pagopa/io-web-profile-backend/commit/cf55279a548d8045a540f28467938c6f75919cfc)
- Bump version to 1.0.2 [skip ci][`a2a6be1`](https://github.com/pagopa/io-web-profile-backend/commit/a2a6be1434e75089fb46e1aba50678cbbe32afd1)

## 1.0.1

### Patch Changes

> 28 September 2023
## v1.0.1-RELEASE

> 28 September 2023
- [IOPID-866] : bff rotazione chiavi jwt e jwe [`#20`](https://github.com/pagopa/io-web-profile-backend/pull/20)
- [IOPID-729] : handler exchange [`#16`](https://github.com/pagopa/io-web-profile-backend/pull/16)
- [IOPID-778] : handler magic link [`#19`](https://github.com/pagopa/io-web-profile-backend/pull/19)
- [IOPID-632] : bff generazione magic link [`#18`](https://github.com/pagopa/io-web-profile-backend/pull/18)
- [#IOPID-580] fix pipelines [`#10`](https://github.com/pagopa/io-web-profile-backend/pull/10)
- [IOPID-731] : bff unit test [`#17`](https://github.com/pagopa/io-web-profile-backend/pull/17)
- [IOPID-633] : Fix handlers after jwt middleware refactor [`#15`](https://github.com/pagopa/io-web-profile-backend/pull/15)
- [IOPID-633] : exchange token verification middleware [`#14`](https://github.com/pagopa/io-web-profile-backend/pull/14)
- [IOPID-693] : handler session-state [`#13`](https://github.com/pagopa/io-web-profile-backend/pull/13)
- [IOPID-692] : handler profile [`#12`](https://github.com/pagopa/io-web-profile-backend/pull/12)
- [IOPID-691] : handler logout [`#11`](https://github.com/pagopa/io-web-profile-backend/pull/11)
- [IOPID-636][iopid-637] : lock/unlock profile handlers [`#9`](https://github.com/pagopa/io-web-profile-backend/pull/9)
- [IOPID-615] : Hub Spid Login - Token Validation [`#8`](https://github.com/pagopa/io-web-profile-backend/pull/8)
- [IOPID-526] : change session lock & unlock response in swagger [`#7`](https://github.com/pagopa/io-web-profile-backend/pull/7)
- [IOPID-526] : Swagger [`#6`](https://github.com/pagopa/io-web-profile-backend/pull/6)
- [IOPID-533] : White list [`#4`](https://github.com/pagopa/io-web-profile-backend/pull/4)
- [IOPID-520] : Create project structure (Docker fixes and Readme typo correction) [`#3`](https://github.com/pagopa/io-web-profile-backend/pull/3)
- First commit, project strucutre for nodejs azure function [`4707d17`](https://github.com/pagopa/io-web-profile-backend/commit/4707d179671ee478f010099e11177374548be629)
- Adding Stack Tech on readme [`29be8ad`](https://github.com/pagopa/io-web-profile-backend/commit/29be8ad26374b70e448b2f608de2b66f945629be)
- Fixxing docker file to run the cointainer properly without errors [`7a57318`](https://github.com/pagopa/io-web-profile-backend/commit/7a57318899e719c639abf4e4695e8f076bef4834)
20 changes: 20 additions & 0 deletions apps/io-web-profile/Exchange/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "api/v1/exchange",
"methods": [
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/Exchange/index.js"
}
20 changes: 20 additions & 0 deletions apps/io-web-profile/Info/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "api/v1/info",
"methods": [
"get"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/Info/index.js"
}
20 changes: 20 additions & 0 deletions apps/io-web-profile/LockSession/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"route": "api/v1/lock-session",
"methods": [
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"scriptFile": "../dist/LockSession/index.js"
}
Loading

0 comments on commit 8e6fbf9

Please sign in to comment.