-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2035 - migration vers proconnect partie 2 #2161
base: main
Are you sure you want to change the base?
Conversation
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@codegouvfr/react-dsfr@1.10.11 |
cfa3df7
to
710bfb3
Compare
3b79f91
to
e6e054c
Compare
e1fe83d
to
8e4b694
Compare
e6e054c
to
6e67aab
Compare
6e67aab
to
7df3a15
Compare
8e4b694
to
0027187
Compare
a18ddfc
to
7f79fd3
Compare
@@ -7,17 +8,25 @@ export type FederatedIdentityProvider = | |||
export const federatedIdentityProviders = [ | |||
"inclusionConnect", | |||
"peConnect", | |||
"proConnect", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne l'utilise pas finalement, à prévoir en renaming une fois que tout sera migré.
return state$.value.auth.federatedIdentityWithUser?.provider === | ||
"peConnect" | ||
? inclusionConnectedGateway.getLogoutUrl$({ | ||
idToken: "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deconnexion de PE Connect à tester
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refacto de cette partie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ refacto
...ns/core/authentication/inclusion-connect/use-cases/GetInclusionConnectLogoutUrl.unit.test.ts
Outdated
Show resolved
Hide resolved
.../src/domains/core/authentication/inclusion-connect/use-cases/GetInclusionConnectLogoutUrl.ts
Outdated
Show resolved
Hide resolved
back/src/domains/core/authentication/inclusion-connect/adapters/PgUserRepository.ts
Outdated
Show resolved
Hide resolved
back/src/domains/convention/use-cases/UpdateConventionStatus.ts
Outdated
Show resolved
Hide resolved
back/src/domains/convention/use-cases/UpdateConventionStatus.ts
Outdated
Show resolved
Hide resolved
Review app: |
- ProConnect HttpClient - handle ProConnect feature flag on business logic and integration tests Co-authored-by: ClementLmd <ClementLmd@users.noreply.github.com>
…repository methods
8ddb106
to
047a5a1
Compare
new AppConfigBuilder({ | ||
INCLUSION_CONNECT_GATEWAY: "IN_MEMORY", | ||
INCLUSION_CONNECT_CLIENT_SECRET: fakeProviderConfig.clientSecret, | ||
INCLUSION_CONNECT_CLIENT_ID: fakeProviderConfig.clientId, | ||
INCLUSION_CONNECT_BASE_URI: fakeProviderConfig.providerBaseUri, | ||
DOMAIN: immersionDomain, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on a pas de tests avec pro connect en e2e ?
external_id_inclusion_connect: string | null; | ||
external_id_pro_connect: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vous preferez pas virer le external ? :
external_id_inclusion_connect: string | null; | |
external_id_pro_connect: string | null; | |
inclusion_connect_sub: string | null; | |
pro_connect_sub: string | null; |
const newInclusionConnectExternalIdColumnName = "external_id_inclusion_connect"; | ||
const proConnectExternalIdColumnName = "external_id_pro_connect"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem, pour le nommage
authPayload, | ||
uow, | ||
convention, | ||
provider: provider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provider: provider, | |
provider, |
authPayload, | ||
uow, | ||
convention, | ||
provider: provider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provider: provider, | |
provider, |
const existingOngoingOAuth = await uow.ongoingOAuthRepository.findByState( | ||
params.state, | ||
"inclusionConnect", | ||
const mode = oAuthProviderByFeatureFlags( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const mode = oAuthProviderByFeatureFlags( | |
const provider = oAuthProviderByFeatureFlags( |
const toto = this.#makeAuthenticatedUser( | ||
this.#uuidGenerator.new(), | ||
this.#timeGateway.now(), | ||
payload, | ||
); | ||
const newOrUpdatedAuthenticatedUser: User = { | ||
...this.#makeAuthenticatedUser( | ||
this.#uuidGenerator.new(), | ||
this.#timeGateway.now(), | ||
icIdTokenPayload, | ||
), | ||
...toto, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable a renommer ou à in line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙈
) { | ||
super(); | ||
super(uowPerformer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je crois que c'est pas obligatoire ça....
Une autre option est d'utiliser : createTransactionalUseCase
external_id_inclusion_connect: user.externalId, // Attention ici c'est pour tester le script de mig | ||
external_id_pro_connect: null, // Il faudra inverser une fois migré |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commentaire toujours utile ?
map((logoutUrl) => { | ||
navigationGateway.goToUrl(logoutUrl); | ||
if (logoutUrl) navigationGateway.goToUrl(logoutUrl); | ||
return authSlice.actions.loggedOutSuccessfullyFromInclusionConnect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return authSlice.actions.loggedOutSuccessfullyFromInclusionConnect(); | |
return authSlice.actions.loggedOutSuccessfullyFromProvider(); |
No description provided.