Authenticator for decentralized authentication with metamask
This authenticator is developed as a PoC to research conducted on "Integrating WSO2 Identity Server with a Decentralized IdP" as a internship project by WSO2 IAM team. The authenticator use Metamask digital wallet as decentralized federated authenticator.
- Download the latest pack of the identity server.(5.11.0.22 or onwards)
- Download and create metamask wallet account. visit https://metamask.io/
- Add metamask.jsp file into <IS_HOME>-> repository -> deployment -> server -> webapps -> authenticationendpoint folder
- Add and for metamask.jsp page to <IS_HOME>-> repository -> deployment -> server -> webapps -> authenticationendpoint -> web.xml
- Build custom federated metamask authenticator jar with " mvn clean install "
- Re-start Identity Server
- Create metamask identity provider. management console -> Identity Provider -> add -> Federated authenticators -> Metamask Configuration. Provide "https://localhost:9443/commonauth" as callback url.
- Select created identity provider in Local & Outbound Authentication configuration of your service provider.
<servlet>
<servlet-name>metamask.do</servlet-name>
<jsp-file>/metamask.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>metamask.do</servlet-name>
<url-pattern>/metamask.do</url-pattern>
</servlet-mapping>