Skip to content
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

20240924 proconnect #1533

Merged
merged 4 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/app/models/enrollment/agent_connect_fi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def submit_validation

responsable_technique_validation
unless additional_content&.fetch("authorize_access_to_service_providers", false)&.present?
errors.add(:additional_content, :invalid, message: "Vous devez autoriser les FS à utiliser les données transmises par AgentConnect")
errors.add(:additional_content, :invalid, message: "Vous devez autoriser les FS à utiliser les données transmises par ProConnect")
end
end
end
4 changes: 2 additions & 2 deletions backend/config/data_providers/others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ api_indemnisation_pole_emploi:
mailer: *shared_mailer

agent_connect_fi:
label: AgentConnect - fournisseur d’identité
label: ProConnect - fournisseur d’identité
mailer: *shared_mailer

agent_connect_fs:
label: AgentConnect - fournisseur de service
label: ProConnect - fournisseur de service
mailer: *shared_mailer

api_satelit_sandbox:
Expand Down
6 changes: 6 additions & 0 deletions backend/spec/controllers/enrollments/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
it { is_expected.to have_http_status(:forbidden) }
end

context "with aidants connect as target api" do
let(:target_api) { "aidants_connect" }

it { is_expected.to have_http_status(:ok) }
end

context "with franceconnect as target api" do
let(:target_api) { "franceconnect" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
create(:event, :update, enrollment: enrollment, created_at: 40.days.ago, updated_at: 40.days.ago)
create(:event, :reminder_before_archive, enrollment: enrollment, created_at: 25.days.ago, updated_at: 25.days.ago)

enrollment = create(:enrollment, :api_impot_particulier_fc_sandbox, :changes_requested, created_at: 90.days.ago, updated_at: 20.days.ago)
enrollment = create(:enrollment, :api_sfip_sandbox, :changes_requested, created_at: 90.days.ago, updated_at: 20.days.ago)
create(:event, :update, enrollment: enrollment, created_at: 40.days.ago, updated_at: 40.days.ago)
create(:event, :reminder_before_archive, enrollment: enrollment, created_at: 20.days.ago, updated_at: 20.days.ago)

Expand Down
4 changes: 1 addition & 3 deletions backend/spec/support/vcr_cassettes/api_gouv_payload.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/src/config/data-provider-configurations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,14 +599,14 @@ export const DATA_PROVIDER_CONFIGURATIONS: Record<
component: ApiIndemnisationPoleEmploi,
},
[TargetAPI.agent_connect_fi]: {
label: 'AgentConnect - fournisseur d’identité',
label: 'ProConnect - fournisseur d’identité',
icon: 'logo-agentconnect.png',
Isalafont marked this conversation as resolved.
Show resolved Hide resolved
email: '[email protected]',
type: DataProviderType.api,
component: AgentConnectFi,
},
[TargetAPI.agent_connect_fs]: {
label: 'AgentConnect - fournisseur de service',
label: 'ProConnect - fournisseur de service',
icon: 'logo-agentconnect.png',
email: '[email protected]',
type: DataProviderType.api,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/AgentConnectFi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const AgentConnectFi = () => (
label: (
<>
J’autorise tous les fournisseurs de services de la fonction
publique à utiliser les données transmises par AgentConnect pour
procéder à l’authentification de leurs agents utilisateurs.
publique à utiliser les données transmises par ProConnect pour
procéder à l’authentification de leurs utilisateurs.
</>
),
},
Expand Down
Loading