[java-idp-plugin-webauthn] branch main updated: Make registration of another key explicit in the flow

Phil Smart philip.smart at jisc.ac.uk
Fri Feb 16 14:42:16 UTC 2024


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=dfcb37095febe342fd6163d434a4920435ea563d

The following commit(s) were added to refs/heads/main by this push:
     new dfcb370  Make registration of another key explicit in the flow
dfcb370 is described below

commit dfcb37095febe342fd6163d434a4920435ea563d
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Feb 16 14:42:13 2024 +0000

    Make registration of another key explicit in the flow
---
 .../admin/webauthn-registration/webauthn-registration-flow.xml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/webauthn-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/webauthn-registration/webauthn-registration-flow.xml b/webauthn-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/webauthn-registration/webauthn-registration-flow.xml
index 410cff8..a0633da 100644
--- a/webauthn-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/webauthn-registration/webauthn-registration-flow.xml
+++ b/webauthn-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/admin/webauthn-registration/webauthn-registration-flow.xml
@@ -117,10 +117,18 @@
             <evaluate expression="flowRequestContext.getExternalContext().getNativeResponse()" result="viewScope.response" />
         </on-render>
         
-        <transition on="registerAnother" to="GeneratePublicKeyCredentialCreationOptions" />
+        <transition on="registerAnother" to="RegisterAnotherKey" />
         <transition on="proceed" to="RegistrationComplete" />
      </view-state>
      
+    <action-state id="RegisterAnotherKey">
+        <!-- TODO should we clear the existing registration context here, other than username -->
+        <evaluate expression="LookupRegisteredCredentials"/>
+        
+        <evaluate expression="'proceed'" />
+        <transition on="proceed" to="GeneratePublicKeyCredentialCreationOptions"/>
+    </action-state>
+     
     <end-state id="RegistrationComplete"/>
     
     <bean-import resource="webauthn-registration-beans.xml" />

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list