You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31f6412
Browse filesBrowse the repository at this point in the historyBrowse files
post ss sa_secret "$(printf '{"meta":{"actor_id":null,"actor_institution":null},"command":{"name":"Identity:CreateIdentity","uuid":"%s","payload":{"id":"%s","name_id":"%s","institution":"%s","email":"%s@dev.openconext.local","common_name":"%s","preferred_locale":"en_GB"}}}' \
echo"== Proving possession of Demo GSSP token (gssf_id=$GSSF_ID) =="
47
+
post ss sa_secret "$(printf '{"meta":{"actor_id":"%s","actor_institution":"%s"},"command":{"name":"Identity:ProveGssfPossession","uuid":"%s","payload":{"identity_id":"%s","second_factor_id":"%s","stepup_provider":"demo_gssp","gssf_id":"%s"}}}' \
# Unlike yubikey/sms, GSSF possession (Identity:ProveGssfPossession) is proven-and-verified
51
+
# in a single event (GssfPossessionProvenAndVerifiedEvent) -- no separate e-mail/nonce step.
52
+
REG_CODE=$($DB -e "SELECT registration_code FROM verified_second_factor WHERE identity_id='$IDENTITY_ID' ORDER BY registration_requested_at DESC LIMIT 1;")
53
+
if [ -z"$REG_CODE" ];then
54
+
echo"No verified_second_factor row found for $IDENTITY_ID -- VerifyEmail likely failed, see output above.">&2
post ra ra_secret "$(printf '{"meta":{"actor_id":"%s","actor_institution":"%s"},"command":{"name":"Identity:VetSecondFactor","uuid":"%s","payload":{"authority_id":"%s","identity_id":"%s","second_factor_id":"%s","registration_code":"%s","second_factor_type":"demo_gssp","second_factor_identifier":"%s","document_number":"123456","identity_verified":true}}}' \
VETTED=$($DB -e "SELECT id FROM vetted_second_factor WHERE identity_id='$IDENTITY_ID';")
63
+
echo
64
+
if [ -n"$VETTED" ];then
65
+
echo"Done. $SLUG now has a vetted Demo GSSP token (second_factor_id=$VETTED)."
66
+
echo"Log in at https://ssp.dev.openconext.local/simplesaml/sp.php as ${SLUG}/${SLUG}, pick a Request LOA Demo GSSP satisfies, and select Demo GSSP as the second factor."
67
+
else
68
+
echo"Vetting did not produce a vetted_second_factor row -- check the command output above for an error.">&2
Feature: The GSSP shows the name of the service the user is authenticating for
9
+
In order to know which service I am authenticating for
10
+
As a user
11
+
I want the GSSP authentication page to show the service name from the AuthnRequest
12
+
13
+
# Covers the cross-repo flow of the mdui:UIInfo service name:
14
+
# the SP sends an AuthnRequest with an mdui:UIInfo/mdui:DisplayName extension,
15
+
# the Stepup-Gateway (feature flag append_service_name_to_authnrequest)
16
+
# reads it and forwards it in the proxy AuthnRequest to the GSSP, where the
17
+
# GSSP (Stepup-gssp-example via Stepup-gssp-bundle and Stepup-saml-bundle)
18
+
# displays it on the authentication page.
19
+
Scenario: Service name from the AuthnRequest mdui:UIInfo is shown on the GSSP authentication page
20
+
Given a service provider configured for second-factor-only
21
+
And a user "jane-a-ra" identified by "urn:collab:person:institution-a.example.com:jane-a-ra" from institution "institution-a.example.com" with UUID "00000000-0000-4000-8000-000000000001"
22
+
And the user "urn:collab:person:institution-a.example.com:jane-a-ra" has a vetted "demo-gssp" with identifier "gssp-identifier123"
23
+
When I start an SFO authentication for "urn:collab:person:institution-a.example.com:jane-a-ra" with service name "Behat Test Service"
24
+
Then I see service name "Behat Test Service" on the GSSP authentication page
25
+
When I verify the "demo-gssp" second factor
26
+
Then I am logged on the service provider
27
+
28
+
# Reuses the identity vetted in the previous scenario, like sfo.feature does.
29
+
Scenario: No service name is shown when the AuthnRequest carries no mdui:UIInfo
30
+
Given a service provider configured for second-factor-only
31
+
When I start an SFO authentication for "urn:collab:person:institution-a.example.com:jane-a-ra"
32
+
Then I should not see "Behat Test Service"
33
+
When I verify the "demo-gssp" second factor
34
+
Then I am logged on the service provider
35
+
36
+
# Gateway has three independent LoginService::singleSignOn implementations that each
37
+
# read the mdui:UIInfo extension behind the same feature flag: GatewayBundle (plain
38
+
# SSO, exercised here), SecondFactorOnlyBundle, and SamlStepupProviderBundle (both
39
+
# exercised by the SFO scenarios above). Without this scenario, a regression in the
40
+
# SSO copy specifically would go undetected even with the SFO scenarios passing.
41
+
Scenario: Service name from the AuthnRequest mdui:UIInfo is shown on the GSSP authentication page via the plain SSO flow
42
+
Given a service provider configured for single-signon
43
+
And a user "Jane Toppan" identified by "urn:collab:person:institution-a.example.com:jane-a2" from institution "institution-a.example.com"
44
+
And the user "urn:collab:person:institution-a.example.com:jane-a2" has a vetted "demo-gssp" with identifier "gssp-identifier-sso1"
45
+
When I visit the service provider with service name "SSO Flow Service Name"
46
+
And I authenticate as "jane-a2" with the identity provider
47
+
Then I see service name "SSO Flow Service Name" on the GSSP authentication page
0 commit comments