Skip to content

Keycloak Authentication Provider implementation to get a 2nd-factor authentication with a OTP/code/token send via SMS (through AWS SNS). Demo purposes only!

License

Notifications You must be signed in to change notification settings

haithamoon/keycloak-2fa-sms-authenticator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keycloak 2FA SMS Authenticator

Keycloak Authentication Provider implementation to get a 2nd-factor authentication with a OTP/code/token send via SMS (through AWS SNS).

Demo purposes only!

Unfortunately, I don't have a real readme yet. Blame on me!

But, for now, you can at least read my blog post about this autenticator here:
https://www.n-k.de/2020/12/keycloak-2fa-sms-authentication.html

Or, just watch my video about this 2FA SMS SPI:

Buliding the docker image and getting the jar file

  • Run the following command to build the docker image docker build -t keycloak:v1 .
  • Next, I'll run the container mounting my host current directoy to /tmp on the container docker run -v $(pwd):/tmp -d my-java-app:latest sleep infinity
  • Attach to the container docker exec -it [container ID ] bash
  • Now, you're inside the container cp /app/*.jar /tmp ## now you copied the jar files to /tmp which is also mounted to the host
  • exit from the container and now you have the jar files in your current directory on the host.

About

Keycloak Authentication Provider implementation to get a 2nd-factor authentication with a OTP/code/token send via SMS (through AWS SNS). Demo purposes only!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 81.2%
  • FreeMarker 11.1%
  • Dockerfile 7.7%