简体   繁体   中英

Spring Security / Shiro and single-use code

We are developing an exam-application where access to the exam is granted by a single-use code.

So basicly we give a candidate a code, for example 'FG678', and this is his code to access the exam.

So the login-form should only have one field and if the User enters a correct single-use code then access is granted.

I could not find any information about such implementation of Spring Security or Shiro. Have anyone of you guys any info on how easy this would be to implement? If it is possible?

Or maybe even a link to a tutorial?

Thanks in advance!

I dont know about shiro, but for spring Securiy you can do it easilly. you just have to do your own login page and implement the class AuthenticationProvider and use it in your xml file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM