Skip to content

Commit

Permalink
Merge pull request wso2#22307 from lashinijay/master-revamp-fido-endp…
Browse files Browse the repository at this point in the history
…oint

[Spring Cleanup] Revamp fido2 endpoint to remove Spring dependency and bump fido version
  • Loading branch information
lashinijay authored Jan 20, 2025
2 parents 92023d5 + 65dcd6b commit a3d0c92
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

<!-- Legacy identity APIs -->
<import resource="classpath:META-INF/cxf/config-mgt-server-v1-cxf.xml"/>
<import resource="classpath:META-INF/cxf/user-fido2-v2-cxf.xml"/>
<import resource="classpath:META-INF/cxf/oauth2-dcr-v1-1-cxf.xml"/>
<import resource="classpath:META-INF/cxf/oauth2-scope-v1-cxf.xml"/>
<import resource="classpath:META-INF/cxf/auth-v1-1-cfx.xml"/>
Expand Down Expand Up @@ -424,18 +423,6 @@
<bean class="org.apache.cxf.jaxrs.ext.search.SearchContextProvider"/>
</jaxrs:providers>
</jaxrs:server>
<jaxrs:server id="fido2v2" address="/users/v2/me/webauthn">
<jaxrs:serviceBeans>
<bean class="org.wso2.carbon.identity.application.authenticator.fido2.endpoint.DefaultApi"/>
<bean class="org.wso2.carbon.identity.application.authenticator.fido2.endpoint.FinishRegistrationApi"/>
<bean class="org.wso2.carbon.identity.application.authenticator.fido2.endpoint.StartRegistrationApi"/>
<bean class="org.wso2.carbon.identity.application.authenticator.fido2.endpoint.StartUsernamelessRegistrationApi"/>
<bean class="org.wso2.carbon.identity.application.authenticator.fido2.endpoint.CredentialIdApi"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
</jaxrs:providers>
</jaxrs:server>
<jaxrs:server id="oauthDCR" address="/identity/oauth2/dcr/v1.1">
<jaxrs:serviceBeans>
<bean class="org.wso2.carbon.identity.oauth2.dcr.endpoint.RegisterApi"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,35 @@
<servlet-name>IdentityConsentMgtV1ApiServlet</servlet-name>
<url-pattern>/identity/consent-mgt/v1.0/*</url-pattern>
</servlet-mapping>

<!-- Servlet instance for /users/v2/me/webauthn -->
<servlet>
<servlet-name>UsersV2MeWebauthnApiServlet</servlet-name>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
org.wso2.carbon.identity.application.authenticator.fido2.endpoint.DefaultApi,
org.wso2.carbon.identity.application.authenticator.fido2.endpoint.FinishRegistrationApi,
org.wso2.carbon.identity.application.authenticator.fido2.endpoint.StartRegistrationApi,
org.wso2.carbon.identity.application.authenticator.fido2.endpoint.StartUsernamelessRegistrationApi,
org.wso2.carbon.identity.application.authenticator.fido2.endpoint.CredentialIdApi
</param-value>
</init-param>
<init-param>
<param-name>jaxrs.providers</param-name>
<param-value>
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>UsersV2MeWebauthnApiServlet</servlet-name>
<url-pattern>/users/v2/me/webauthn/*</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>CXFServlet</servlet-name>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,7 @@

<!-- Local Authenticator Versions -->
<identity.local.auth.basicauth.version>6.8.18</identity.local.auth.basicauth.version>
<identity.local.auth.fido.version>5.4.16</identity.local.auth.fido.version>
<identity.local.auth.fido.version>5.4.17</identity.local.auth.fido.version>
<identity.local.auth.iwa.version>5.4.8</identity.local.auth.iwa.version>

<!-- Local Authentication API Connector Version -->
Expand Down

0 comments on commit a3d0c92

Please sign in to comment.