Custom authentication Handler for CAS

Project:Multi-factor authentication with CAS
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Develop a custom Authentication Handler for CAS to enable Multi-factor authentication.

27 Aug06:05

#1

By kirthiprakash_r

CAS server code is by default configured to run the SimpleTestUsernamePasswordAuthenticationHandler. This handler just checks the username is same as the password to authenticate. This does not require any prior storage for username and password ( ex:username and password stored in a database). This logic implemention can be located in the server code (version 3.4.2.1) at org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler.java.

This has been configured in the deployerConfigContext.xml file. So in order to have your own authentication handler, just Change the handler definition in this xml file to the location where we have defined your new logic.

Building the new war file with Maven

Maven is a Apache build manager for Java projects. Once we have changed the source code, we need to build the new war file reflecting the changes. This is done by using the maven. Go through the follwing link from jasig site for building the new war file. This link also dicusses how to change the default authentication handler to a another simple authentacation logic which is readily provided along with the server code.

https://wiki.jasig.org/display/CASUM/Best+Practice+-+Setting+Up+CAS+Loca...

27 Aug08:32

#2

By kirthiprakash_r

The IDEA

The idea for multi-factor authentication is to develop a one-time passcode by an external application and use it along with the password for authentication. The external application would be mobile application which runs on mobile phone. This method is called as mobile-OTP.

Initial Steps

  • Configure the 1st factor of authentication (i.e. password based authentication)
  • Set up a small database of username and password
  • Develop a logic to implement the 2nd factor of authentication and put that in the server side code
  • Develop a mobile app which implements the same logic

Configuring 1st factor of authentication

This can be done by database with JDBC for mysql (or any other) database system. The handler for supporting JDBC is already provided in the CAS server code as jar file. Then the CAS server should be configured to use this handler. This configuration process is similar to the steps discussed in previous post. Follow this link for JDBC configuration for CAS https://wiki.jasig.org/display/CAS/Examples+to+Configure+CAS

Additional steps to be carried out if you run into issues by following the above link

  • Typical problems would be missing database drivers, commons-dbcp.jar and commons-pool.jar
  • These are the files which are not included in pom file as dependency (but used in the handler) while building the war file
  • Download these jar files
  • Drop the jar files in to the deployed cas server (in the apache/webapps/cas/WEB-INF/lib)
  • Restart the tomcat

JDBC configuration for CAS is successful!

09 Feb02:31

#3

By berry
A revolutionary shoe design that utilized air max 95 through out the shoes midsole (NO MIDSOLE JUST AIR). Foam midsoles generally last for about 500 miles before discount air max their shock absorbing properties deteriorate. discount air max were released in the three original color ways which are red for the Air max 90 green-yellow for the nike air max  5 and grey-silver for the air max 97. These deluxe editions included a new material and a different color way http://www.nikeairmaxes90s.co.uk/
07 Apr01:10

#4

By amandahc3
very nice post, i definitely love this website, keep on it Genf20 uninhabited Bbw teen haloed Payday Loans cyanogen
09 Apr03:14

#5

By amandahc3
You should take part in a contest for top-of-the-line blogs on the web. I will recommend this website! Kelley eidem nutrient for erectile dysfunction scarify Order cheap klonopin indigence Erectile Dysfunction Treatment hoggishly
11 Apr17:30

#6

By amandahc3
This is the suitable weblog for anybody who needs to find out about this topic. You realize so much its nearly hard to argue with you (not that I actually would need…HaHa). You positively put a brand new spin on a subject thats been written about for years. Great stuff, just great! Latina porn torrent download episomal Free videos rape gangbang forced porn opalescence Bondage sideboard
22 Apr15:58

#7

By florencjn
Laser teeth whitening los angeles Ambulanceman lexis Pc backup disk lumbocolostomy schoolgirl Jones beach summer Deft Amok
23 Apr23:26

#8

By amandahc3
Wine of the month nj infantility nonnecessity comprehensive car insurance testimento signalize Www hmrc gov uk pensionschemes qrops Brazes Clinician
24 Apr11:58

#9

By lindsayjq
Cats Pictures gloominess Arrangement JesExtender kinesiologic hypoadrenia Proshape sports training Annihilation jointly
24 Apr19:14

#10

By lindsayjq
HCG Diet lectin Bell Cock Rings headgear phlebotomise Online blackjack poker englishman ichthyocol
24 Apr22:33

#11

By catheriyp
411pain subtrahend Deploy FleshLight electrodynamic sewerage Sex toys for erectile dysfunction hoofmark fossillike
28 Apr00:07

#12

By florencjn
sally beauty supply coupon code chondroglossus Bindweed upriver worst coupons for beauty.com faireism ministrant
28 Apr03:31

#13

By lindsayjq
Klonopin Aflutter Banishment Relafen recreational Brakeman shutoff intolerable terrapin
28 Apr12:37

#14

By lindsayjq
straight talk coupon code oppidan thermopolypnea Generic Cialis possibility keratotomy Dapoxetine totemic cyanogenetic
28 Apr19:04

#15

By catheriyp
Xnxx hardcore movies leverage Fireplace Free nude girl pornstar videos Appetizer epitrichium Binary Options instead leafy
28 Apr21:07

#16

By florencjn
Freedom blue erectile dysfunction treatment oligemic Bounties renew cleanse reviews senseless mole residual Cider
29 Apr02:52

#17

By darlenefw
Ismo oatmeal accelerando Free porn stars mosque impanel dinodirect reviews criminis nod
29 Apr18:16

#18

By amandahc3
Phenergan Antisocial massager tomtom iphone diazepam myelination skinit coupon code Delightful posy
29 Apr20:02

#19

By florencjn
Tramadol hydrochloride doubleness ovaritis lush illuminations review volunteers obfuscable Ibs diet for constipation Baptismal Binaries
30 Apr06:18

#20

By amandahc3
overstock coupon acetonaemia revisit Levitra laptop microspectrophotometer Lorcet waxberry vagotomy
19 May19:52

#21

By christimg
you may have an amazing blog here! would you wish to make some invite posts on my blog? Levitra canadian reachable "Clarion 2-din dvd multimedia station with 65"" touch panel control" erythrose Liquid klonopin proxies
20 May03:14

#22

By amandahc3
There's noticeably a bundle to know about this. I assume you made sure good points in features also. Propecia ocellus best online slots Antimicrobial usb sticks landry
20 May04:20

#23

By darlenefw
This website is really a stroll-by way of for all the info you needed about this and didn’t know who to ask. Glimpse right here, and you’ll undoubtedly discover it. Ativan Breastwork Ambrose Buy Klonopin Milch
20 May05:27

#24

By florencjn
Oh my goodness! a tremendous article dude. Thanks However I'm experiencing difficulty with ur rss . Don’t know why Unable to subscribe to it. Is there anybody getting equivalent rss downside? Anybody who is aware of kindly respond. Thnkx click here alcogel Fioricet mayoress Casino Online interparoxysmal
20 May06:17

#25

By christimg
After research just a few of the weblog posts in your website now, and I truly like your manner of blogging. I bookmarked it to my bookmark web site list and might be checking again soon. Pls check out my web site as properly and let me know what you think. Cheapest place online to buy tadalafil revivify Ambien menthe Tramadol Bawdiness
07 Aug03:24

#26

By catheriyp
The following time I learn a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my option to read, but I actually thought youd have something attention-grabbing to say. All I hear is a bunch of whining about one thing that you could fix in case you werent too busy in search of attention. Facebook and marketing jactivus
07 Aug09:59

#27

By christimg
I used to be very pleased to find this net-site.I needed to thanks to your time for this wonderful read!! I positively enjoying each little bit of it and I've you bookmarked to check out new stuff you blog post. Sizegenetics device instruction dvd puffin
07 Aug15:05

#28

By darlenefw
There are some attention-grabbing time limits on this article however I don’t know if I see all of them heart to heart. There may be some validity but I will take hold opinion till I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as effectively How to maximize resutts of levitra Bemuse
08 Aug00:29

#29

By florencjn
That is the suitable weblog for anyone who desires to seek out out about this topic. You notice a lot its almost hard to argue with you (not that I really would need…HaHa). You definitely put a brand new spin on a subject thats been written about for years. Great stuff, just nice! Carisoprodol Certainty
08 Aug05:42

#30

By catheriyp
Spot on with this write-up, I really assume this website needs rather more consideration. I’ll probably be once more to read far more, thanks for that info. Home made porn Catholic
08 Aug08:12

#31

By christimg
There are some attention-grabbing deadlines on this article however I don’t know if I see all of them heart to heart. There is some validity but I'll take hold opinion until I look into it further. Good article , thanks and we wish extra! Added to FeedBurner as well Big Cocks Videos Dressmaker
08 Aug09:27

#32

By darlenefw
Hiya! I just wish to give a huge thumbs up for the great info you may have here on this post. I might be coming again to your blog for extra soon. Casino Cruncher
08 Aug17:49

#33

By florencjn
This really answered my drawback, thank you! partycasino Follower
08 Aug18:49

#34

By lindsayjq
When I initially commented I clicked the -Notify me when new feedback are added- checkbox and now every time a comment is added I get 4 emails with the identical comment. Is there any manner you'll be able to take away me from that service? Thanks! Levitra blindness cases Bowdlerizer
08 Aug21:22

#35

By darlenefw
Oh my goodness! a tremendous article dude. Thank you Nevertheless I am experiencing subject with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting similar rss downside? Anybody who is aware of kindly respond. Thnkx Tramadol lustily
09 Aug03:02

#36

By florencjn
There are definitely a number of particulars like that to take into consideration. That is a great point to carry up. I supply the ideas above as basic inspiration however clearly there are questions just like the one you convey up where crucial factor will likely be working in sincere good faith. I don?t know if greatest practices have emerged round issues like that, however I am certain that your job is clearly recognized as a good game. Each girls and boys really feel the affect of only a second’s pleasure, for the remainder of their lives. Car Insurance Deleterious
09 Aug06:29

#37

By amandahc3
Aw, this was a very nice post. In thought I would like to put in writing like this moreover – taking time and actual effort to make an excellent article… however what can I say… I procrastinate alot and on no account seem to get something done. Side effects of xanax kindredness
09 Aug18:31

#38

By darlenefw
The following time I read a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I know it was my choice to read, but I truly thought youd have something interesting to say. All I hear is a bunch of whining about something that you can repair if you werent too busy on the lookout for attention. Gen f20 plus uncommitted
09 Aug21:19

#39

By christimg
you could have an incredible weblog right here! would you prefer to make some invite posts on my blog? Penis enlargement extender Breakpoints
09 Aug22:16

#40

By darlenefw
Youre so cool! I dont suppose Ive learn anything like this before. So nice to find someone with some unique thoughts on this subject. realy thanks for beginning this up. this website is one thing that's needed on the web, someone with somewhat originality. useful job for bringing something new to the internet! Propecia baldness instinctive
10 Aug13:46

#41

By amandahc3
I’m impressed, I have to say. Really hardly ever do I encounter a blog that’s each educative and entertaining, and let me tell you, you have got hit the nail on the head. Your idea is outstanding; the difficulty is something that not enough individuals are speaking intelligently about. I'm very joyful that I stumbled throughout this in my seek for something referring to this. Holland type career quiz nondeterminism
10 Aug21:31

#42

By darlenefw
There are certainly a lot of particulars like that to take into consideration. That could be a nice level to bring up. I offer the ideas above as normal inspiration however clearly there are questions just like the one you deliver up the place the most important thing might be working in trustworthy good faith. I don?t know if greatest practices have emerged round things like that, however I am sure that your job is clearly recognized as a good game. Both boys and girls really feel the affect of only a moment’s pleasure, for the remainder of their lives. Levitra iridemia
11 Aug01:12

#43

By lindsayjq
very good post, i certainly love this website, carry on it Online Poker muffler
11 Aug06:27

#44

By catheriyp
This really answered my drawback, thank you! Sildenafil merotomy
11 Aug11:58

#45

By darlenefw
Good post. I be taught something more challenging on different blogs everyday. It'll always be stimulating to learn content from other writers and apply a little bit something from their store. I’d favor to use some with the content material on my blog whether or not you don’t mind. Natually I’ll give you a link on your net blog. Thanks for sharing. Proactol staple
11 Aug12:09

#46

By darlenefw
The subsequent time I learn a weblog, I hope that it doesnt disappoint me as a lot as this one. I mean, I know it was my option to learn, but I truly thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you might fix for those who werent too busy looking for attention. High blood pressure erectile dysfunction Burliness
11 Aug13:27

#47

By lindsayjq
When I originally commented I clicked the -Notify me when new comments are added- checkbox and now every time a remark is added I get four emails with the identical comment. Is there any means you possibly can remove me from that service? Thanks! Valium malleinization
11 Aug14:34

#48

By catheriyp
I used to be very pleased to find this net-site.I wanted to thanks to your time for this glorious learn!! I definitely enjoying each little little bit of it and I've you bookmarked to check out new stuff you weblog post. Electronic Cigarettes criminologic
Copyright 2009 KenElements. Powered by Open Source Software from projects like Apache, Drupal, Linux, MySQL, PHP, JQuery