You don't often get email from vijayaw...@gmail.com. Learn why this is important JSON File:
{
"@class": "org.apereo.cas.services.RegexRegisteredService",
"serviceId": "^http://localhost/bitlabs/login/index.php$",
"name": "Moodle",
"id": 10000001,
"description": "Moodle Service",
"evaluationOrder": 1,
"accessStrategy": {
"@class": "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
"enabled": true,
"ssoEnabled": true
}
}
application.yml:
# Application properties that need to be# embedded within the web application can be included hereserver:port: 8443ssl:key-store: file:etc/cas/thekeystorecas:tgc:crypto:encryption:key: v72HzSo4JrQl0wxj3PUleiqV5AO2thr63eSwv0oa1VEsigning:key: 7OVwV-0Nw5jjUbznhKvBNut2r5w_P-L5foYLpjEvz-ZCQnJY2JMxuf3JeMJQjxN6oUjP3MMv2BFuP0jbhgQNggauthn:accept:enabled: truejdbc:query[0]:sql: SELECT * FROM mdl_users WHERE email = ?url: jdbc:mysql://localhost:3306/bitlabsdialect: org.hibernate.dialect.MySQLDialectuser: rootpassword:ddlAuto: nonedriverClass: com.mysql.cj.jdbc.DriverfieldPassword: passwordpasswordEncoder:type: NONE
cas.properties:
cas.server.prefix=${cas.server.name}/casserver.ssl.key-store=file:/etc/cas/thekeystoreserver.ssl.key-store-password=changeitlogging.config=file:/etc/cas/config/log4j2.xmlcas.service-registry.core.init-from-json=truecas.serviceRegistry.json.location=file:/etc/cas/serviceslogging.level.org.apache.commons.logging=DEBUG
cas.authn.accept.users=# Specify MySQL driver classcas.authn.jdbc.query[0].driver-class=com.mysql.cj.jdbc.Driver
# Modify the JDBC URL to connect to your MySQL databasecas.authn.jdbc.query[0].url=jdbc:mysql://localhost:3306/bitlabs
# Specify MySQL dialectcas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQL57Dialect
# Specify MySQL database credentials (username and password)cas.authn.jdbc.query[0].user=rootcas.authn.jdbc.query[0].password=
# Adjust SQL query to match MySQL syntax and table namecas.authn.jdbc.query[0].sql=SELECT * FROM mdl_user WHERE email = ?
# Specify the password encoder type (assuming BCRYPT is still used)cas.authn.jdbc.query[0].password-encoder.type=BCRYPT
# Specify the field names for password, expired, and disabled columns in your MySQL tablecas.authn.jdbc.query[0].field-password=passwordcas.authn.jdbc.query[0].field-expired=expiredcas.authn.jdbc.query[0].field-disabled=disabled
I am facing 2 issues:
issue1:Application Not Authorized to Use CASThe 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.
Issue 2:CAS is unable to process this request: "500:Internal Server Error"There was an error trying to complete your request. Please notify your support desk or try again.Error: Exception thrown in state 'viewLoginForm' of flow 'login'what is the solution for this?Apereo is a non-profit open source software governance foundation. The CAS software is an Apereo sponsored project and is freely downloadable and usable by anyone. However, Apereo does not operate the systems of anyone using the software and in most cases doesn't even know who is using it or how to contact them unless they are an active part of the Apereo community.
If you are having problems logging in using CAS, you will need to contact the IT staff or Help Desk of your organization for assistance.
We wish we could be more directly helpful to you.