How to implement two-factor authentication in CAS server.
Want to know How to implement two-factor authentication in CAS server. Preferred google-authenticator
Related
I have installed CAS6.4 and CAS Management .
I am able to access https://CNNAME/cas/login & it successfully login .
I could also Login to https://hostanme/cas-management/ and it redirect back to cas management.
I have added service URL in cas management as below :
^(http|https)://CNNAME*/**
http*://hostname2/*
But when i access these URL, i get error as
Application Not Authorized to Use CAS
The application you attempted to authenticate to is not authorized to use CAS. This usually indicates that the application is not registered with CAS, or its authorization policy defined in its registration record prevents it from leveraging CAS functionality, or it's malformed and unrecognized by CAS. Contact your CAS administrator to learn how you might register and integrate your application with CAS.
In the logs i get error as :
2021-03-01 07:15:39,111 WARN [org.apereo.cas.services.RegisteredServiceAccessStrategyUtils] - <Unauthorized Service Access. Service [https://hostanme/callback] is not found in service registry.>
I have been struggling to get this solved for for days, could someone please help me with this.
I see that many tools around authentication do not support integration with CAS. (e.g. AWS Cognito)
Is CAS deprecated for new projects? I'm deciding if I should support CAS IdP for my new SaaS project or not.
No, CAS authentication protocol is not deprecated. CAS authentication protocol is still active based on https://apereo.github.io/cas/development/protocol/CAS-Protocol-Specification.html. Most CAS IdPs such as Apereo's CAS Server support other protocols such as SAML and OAuth2. I would adopt these authentication protocols before the CAS authentication protocol.
My 2 cents.
CAS
Apache Shiro
I need to know the difference between CAS & Apache Shiro.
Are they both used for Single Sign On or does Apache Shiro depend on CAS for authentication
Shiro is a security framework. CAS is a platform for enterprise Single SignOn. Shiro does not depend on CAS, and neither does CAS depend on Shiro. Shiro supports CAS so that you can use Shiro in your applications to authenticate via a CAS server, and CAS uses Shiro to allow you to authenticate to a variety of backend sources. They are both very different from each other.
If CAS is based on cookies, then will it work after disabling cookies? And can we manage CAS SSO using session management API?
Cookies are required for SSO. Not for authentication.
Im trying to make my Bonita account authentication openID- enable login through a google account.
Here http://documentation.bonitasoft.com/single-sign-cas they provide the way of doing it("Configure Bonita client for CAS"). My question is: how should I get the following parameters specified in the link: ip_address:port from google(gmail)?
as probably noticed, im newly to be in this section. Any help will be deeply appreciated.
Bonita BPM will not interact with OpenID protocol out of the box.
However it supports the CAS protocol in the subscription editions.
What you probably need to do is to configure your CAS server to act as an authentication proxy.
Here is how it could work in theory (not sure it is feasible):
Bonita BPM relays user authentication to your CAS server using the CAS protocol.
Your CAS server delegates the user authentication to an OpenID provider such as google. Here is how you could activate OpenID support on the CAS server:
http://jasig.github.io/cas/4.0.x/protocol/OpenID-Protocol.html
An alternative solution could also be to implement a specific Bonita authentication service for OpenID (this requires Java development). In that case you would no longer need CAS. I know for a fact that this is possible.
Be aware that both solutions are technically not trivial to put in place.
Cheers,
You can integrate the BonitaBPM Subscription Edition with a Jasig CAS server:
http://documentation.bonitasoft.com/single-sign-cas-0
The CAS server can be configured to get it's authentication from OpenID as can be found here:
http://jasig.github.io/cas/4.0.x/protocol/OpenID-Protocol.html
I could integrate Bonita Community 7.7.4 with Apereo CAS. Details are here: https://github.com/sparse91/bonita-community-cas.