Skip to content

A Two Factor Authentication Simulation Created using Java JAAS

Notifications You must be signed in to change notification settings

yasiruk/JAASTwoFactorAuthentcation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JAASTwoFactorAuthentcation

This is a simple demonstration of JAAS done by implementing a two factor authentication system. In this example we prompt the user for a username and a password. And then an SMS verification challenge.

The SMS verification is simulated by sending the code to a TCP socket (8000) so use a program like net cat to listen on port 8000 when you are testing this code.

nc -l -k 8000

This application uses the default JAAS Login configuration option. After compilation, the following JVM parameter should be passed to point to the correct config file.

-Djava.security.auth.login.conf=jaas.config

On IDE's like JetBrains IntelliJ you can add this code to the Run/Debug configuration's VM Options value.

About

A Two Factor Authentication Simulation Created using Java JAAS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages