Skip to content

Commit

Permalink
[#IOPID-1771] Remove all the APIs migrated to the Session Manager (#1141
Browse files Browse the repository at this point in the history
)

* [#IOPID-1771] Remove: SSO strategy, some controllers, lollipop client

* [#IOPID-1771] Remove spid login and io-spid-commons lib

* [#IOPID-1771] Remove specs for removed APIs

* [#IOPID-1771] Fix local start with docker compose

* [#IOPID-1771] Remove OPEX pipeline for removed APIs

* [#IOPID-1771] Refactor README removing SPID references

* [#IOPID-1771] Remove getSession

* [#IOPID-1771] remove acsRequestMapper, getLoginType, spidLogCallback

* [#IOPID-1771] Remove ioLoginUrlScheme

* [#IOPID-1771] Remove set/update func from RedisSessionStorage

* [#IOPID-1771] Remove mockTelemetryClient in lollipop service test

* [#IOPID-1771] Remove OnUserLogin unused type

* [#IOPID-1771] Remove useless const about tokens and age limit

* [#IOPID-1771] Remove xmldom lib and getErrorCodeFromResponse

* [#IOPID-1771] Remove unused RedisSessionStorage func

* [#IOPID-1771] Fix generated openapi

* Fix typo README

Co-authored-by: Gabriele Mendolia <arcogabbo@gmail.com>

* Remove env var doc in README

Co-authored-by: Gabriele Mendolia <arcogabbo@gmail.com>

* [#IOPID-1771] Remove xmldom types

* [#IOPID-1771] Remove getByWalletToken in SessionStorage

* [#IOPID-1771] Remove createNewProfile utils

* [#IOPID-1771] Fix unit test

---------

Co-authored-by: Gabriele Mendolia <arcogabbo@gmail.com>
  • Loading branch information
BurnedMarshal and arcogabbo authored Jul 31, 2024
1 parent 70a1a1b commit 2cb0b94
Show file tree
Hide file tree
Showing 96 changed files with 144 additions and 13,621 deletions.
50 changes: 0 additions & 50 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,50 +1,29 @@
API_KEY=put_your_api_key_here
API_URL=http://host.docker.internal:7071/api/v1
API_BASE_PATH="/api/v1"
BACKEND_HOST="https://localhost"
BONUS_API_KEY=put_your_api_key_here
BONUS_API_URL=http://host.docker.internal:7072/api/v1
BONUS_API_BASE_PATH="/bonus/api/v1"
PORT=80
REDIS_URL=put_the_azure_redis_url_here
REDIS_PORT=put_the_azure_redis_port_here
REDIS_PASSWORD=put_the_azure_redis_password_here
TOKEN_DURATION_IN_SECONDS=3600
SAML_CALLBACK_URL="https://localhost/assertionConsumerService"
SAML_ISSUER="https://spid.agid.gov.it/cd"
SAML_ACCEPTED_CLOCK_SKEW_MS=0
SAML_ATTRIBUTE_CONSUMING_SERVICE_INDEX=0
PRE_SHARED_KEY="12345"
ALLOW_NOTIFY_IP_SOURCE_RANGE="::ffff:ac13:1/112"
ALLOW_PAGOPA_IP_SOURCE_RANGE="::ffff:ac13:1/112"
ALLOW_MYPORTAL_IP_SOURCE_RANGE="::ffff:ac13:1/112"
ALLOW_BPD_IP_SOURCE_RANGE="::ffff:ac13:1/112"
ALLOW_SESSION_HANDLER_IP_SOURCE_RANGE="::ffff:ac13:1/112"
AUTHENTICATION_BASE_PATH=""
PAGOPA_BASE_PATH="/pagopa/api/v1"
MYPORTAL_BASE_PATH=/myportal/api/v1
BPD_BASE_PATH=/bpd/api/v1
FIMS_BASE_PATH=/fims/api/v1
PAGOPA_API_URL_PROD="https://pagopa-proxy-prod"
PAGOPA_API_KEY_PROD=foo
PAGOPA_API_URL_TEST="https://pagopa-proxy-test"
PAGOPA_API_KEY_UAT=bar
SPID_TESTENV_URL=https://spid-testenv2:8088
#CIE_METADATA_URL=https://idserver.servizicie.interno.gov.it:8443/idp/shibboleth
CIE_METADATA_URL=https://api.is.eng.pagopa.it/idp-keys/cie/latest
IDP_METADATA_URL=https://api.is.eng.pagopa.it/idp-keys/spid/latest
SHUTDOWN_SIGNALS="SIGINT SIGTERM"
SHUTDOWN_TIMEOUT_MILLIS=30000
SPID_LOG_STORAGE_CONNECTION_STRING=CONNECTION_STRING
SPID_LOG_QUEUE_NAME=spidqueuename
NOTIFICATIONS_STORAGE_CONNECTION_STRING=foobar
NOTIFICATIONS_QUEUE_NAME=nqueuename
PUSH_NOTIFICATIONS_STORAGE_CONNECTION_STRING=foobar
PUSH_NOTIFICATIONS_QUEUE_NAME=nqueuename
USERS_LOGIN_STORAGE_CONNECTION_STRING=foobar
USERS_LOGIN_QUEUE_NAME=ulqueuename
TEST_LOGIN_FISCAL_CODES=AAABBB01C02D345Z,EEEFFF01C02H345Z
TEST_LOGIN_PASSWORD=secret

# ------------------------------------
# Feature Flags
Expand All @@ -59,9 +38,6 @@ JWT_SUPPORT_TOKEN_PRIVATE_RSA_KEY="-----BEGIN RSA PRIVATE KEY-----\n
<APrivateRSAKEY>\n
-----END RSA PRIVATE KEY-----"
JWT_SUPPORT_TOKEN_ISSUER=io-backend
SPID_LEVEL_WHITELIST=SpidL2,SpidL3

FF_USER_AGE_LIMIT_ENABLED=1

# ------------------------------------
# FnAppMessages Env Variables
Expand Down Expand Up @@ -107,15 +83,6 @@ JWT_MIT_VOUCHER_TOKEN_ISSUER=app-backend.io.italia.it
JWT_MIT_VOUCHER_TOKEN_EXPIRATION=1200
JWT_MIT_VOUCHER_TOKEN_AUDIENCE=69b3d5a9c935fac3d60c

# ------------------------------------
# Zendesk support env Variables
# ------------------------------------
ZENDESK_BASE_PATH="/api/backend/zendesk/v1"
ALLOW_ZENDESK_IP_SOURCE_RANGE="::ffff:ac13:1/112"
JWT_ZENDESK_SUPPORT_TOKEN_SECRET="ASHAREDSECRET123"
JWT_ZENDESK_SUPPORT_TOKEN_ISSUER=io-backend
JWT_ZENDESK_SUPPORT_TOKEN_EXPIRATION=1200

# ------------------------------------
# PEC SERVER support env Variables
# ------------------------------------
Expand Down Expand Up @@ -154,35 +121,18 @@ FF_ROUTING_PUSH_NOTIF_CANARY_SHA_USERS_REGEX="XYZ"
# ------------------------------------
# LOLLIPOP
# ------------------------------------
FF_LOLLIPOP_ENABLED=1
LOLLIPOP_REVOKE_STORAGE_CONNECTION_STRING=foobar
LOLLIPOP_REVOKE_QUEUE_NAME=lollipoprevoke
LOLLIPOP_API_KEY=put_your_api_key_here
LOLLIPOP_API_BASE_PATH="api/v1"
LOLLIPOP_API_URL="http://host.docker.internal:7078/api/v1"

# ------------------------------------
# IOLOGIN
# ------------------------------------
FF_IOLOGIN="NONE"
IOLOGIN_TEST_USERS="GRBGPP87L04L741X"
IOLOGIN_CANARY_USERS_REGEX="^([(0-9)|(a-f)|(A-F)]{63}0)$"

# ------------------------------------
# FAST LOGIN
# ------------------------------------
FAST_LOGIN_API_KEY=foo
FAST_LOGIN_API_URL="http://fast-login-lc/"
LV_TEST_USERS="GRBGPP87L04L741X"
FF_FAST_LOGIN="BETA"
LOCKED_PROFILES_STORAGE_CONNECTION_STRING="CONNECTION_STRING"
LOCKED_PROFILES_TABLE_NAME="lockedProfiles"

# ------------------------------------
# CIE TEST FISCAL CODES
# ------------------------------------
ALLOWED_CIE_TEST_FISCAL_CODES="GRBGPP87L04L741X"

# ------------------------------------
# UNIQUE EMAIL ENFORCEMENT
# ------------------------------------
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/opex_api_fast_login.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/pr_opex_api_fast_login.yml

This file was deleted.

1 change: 0 additions & 1 deletion .opex/api_fast_login/env/prod/backend.ini

This file was deleted.

4 changes: 0 additions & 4 deletions .opex/api_fast_login/env/prod/backend.tfvars

This file was deleted.

14 changes: 0 additions & 14 deletions .opex/api_fast_login/env/prod/config.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions .opex/api_fast_login/env/prod/terraform.tfvars

This file was deleted.

9 changes: 0 additions & 9 deletions .opex/api_public/env/prod/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,3 @@ overrides:
/info:
response_time_threshold: 8
availability_threshold: 0.70
/test-login:
response_time_threshold: 8
availability_threshold: 0.70
/login:
response_time_threshold: 8
availability_threshold: 0.70
/assertionConsumerService:
response_time_threshold: 9
availability_threshold: 0.70
Loading

0 comments on commit 2cb0b94

Please sign in to comment.