title: Application Not Authorized to Use CAS The application you attempted to authenticate to is not authorized to use CAS
body: <p>We are using single sign on solution set up using CAS server( deployed on tomcat).
  The login was working seamless few days back and all of a sudden its says "</p>
  
  <p><strong>Problem</strong>
  Application Not Authorized to Use CAS
  The application you attempted to authenticate to is not authorized to use CAS</p>
  
  <p>After user login, the user is successfully authenticated in the backend (in the logs we can see its authenticated), but after login the user will redirect to /oidc/token and then to /profile. Now its failing in the /profile redirection.</p>
  
  <p><strong>What I tried</strong>
  We tried checking the catalina.log and it says used authenticated successfully. We have checked the regexregisteredservice.json file located in /etc/cas/config and there is no change.</p>
  
  <p>The same is working in UAT environement.</p>
  
  <p><strong>Assumptions</strong>
  Few days back we have updated our SSL certificate in the website. Does it effect the CAS services ?</p>
  
  <p>This is the regexregisteredservice.json file sample</p>
  
  <p>{
    @class: org.apereo.cas.services.RegexRegisteredService
    serviceId: <a href="https://host:port/oauth2.0/callbackAuthorize" rel="nofollow noreferrer">https://host:port/oauth2.0/callbackAuthorize</a>.*
    name: RegexRegisteredService
    id: 2588160372902752768
    description: OAuth Authentication Callback Request URL
    proxyPolicy:
    {</p>
  
  <p>Expected Result:</p>
  
  <p>After login user will redirect to /oidc/token and then to /profile</p>
  
  <p>Its wokring in UAT but the problem in production(clustered version, deployed on tomcat)</p>