title: CAS [v5.3.6] / Problem with setting the appropriate language
body: <p>I currently working with cas v5.3.6, after migration from v5.0.4 i have a problem, with setting te proper language.</p>
  
  <p>Setting the language in cookie and read by CookieLocaleResolver works very well, only one view doesn't work as expected / oauthConfirmView.</p>
  
  <ul>
  <li>system locale is set as PL,</li>
  <li>cas default locale property set as PL,</li>
  <li><p>webapp set as tomcat,</p></li>
  <li><p>spring: 4.3.20.RELEASE</p></li>
  <li>spring-boot: 1.5.14.RELEASE </li>
  <li>pacj4: 3.1.0</li>
  </ul>
  
  <p>Authorization: <a href="https://apereo.github.io/cas/5.3.x/installation/OAuth-OpenId-Authentication.html#responsegrant-types" rel="nofollow noreferrer">https://apereo.github.io/cas/5.3.x/installation/OAuth-OpenId-Authentication.html#responsegrant-types</a></p>
  
  <h1>Redirect flow:</h1>
  
  <p><br></p>
  
  <h3>1. Provide Credentials</h3>
  
  <pre><code>Request GET: https://domain/cas/oauth2.0/authorize?response_type=code&amp;client_id=ClientId&amp;redirect_uri=https://redirect_url
  - Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
  
  Response: (302)
  - Location: https://domain/cas/oauth2.0/callbackAuthorize?client_id=ClientId&amp;response_type=code&amp;redirect_uri=https://redirect_url&amp;client_name=CasOAuthClient
  </code></pre>
  
  <p><br></p>
  
  <h3>2. Generate Ticket</h3>
  
  <pre><code>Request GET: https://domain/cas/oauth2.0/callbackAuthorize?client_id=ClientId&amp;response_type=code&amp;redirect_uri=https://redirect_url&amp;client_name=CasOAuthClient
  - Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
  
  Response: (302)
  - Location: https://domain/cas/oauth2.0/callbackAuthorize?client_id=ClientId&amp;response_type=code&amp;redirect_uri=https://redirect_url&amp;client_name=CasOAuthClient&amp;ticket=ST-TICKET-GENERATED
  </code></pre>
  
  <p><br></p>
  
  <h3>3. Validate Ticket</h3>
  
  <pre><code>Request GET: https://domain/cas/oauth2.0/callbackAuthorize?client_id=ClientId&amp;response_type=code&amp;redirect_uri=https://redirect_url&amp;client_name=CasOAuthClient&amp;ticket=ST-TICKET-GENERATED
  - Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
  
  Response: (302)
  - Content-Language: pl
  - Location: https://domain/cas/oauth2.0/authorize?response_type=code&amp;client_id=ClientId&amp;redirect_uri=https://redirect_url
  </code></pre>
  
  <p><br></p>
  
  <h3>4. Share profile / oauthConfirmView</h3>
  
  <pre><code>Request GET: https://domain/cas/oauth2.0/authorize?response_type=code&amp;client_id=ClientId&amp;redirect_uri=https://redirect_url
  - Accept-Language: pl-PL,pl;q=0.9,en;q=0.8
  
  Response: (200)
  - Content-Language: en-US
  </code></pre>
  
  <p><br>
  After this flow i got view in english language, does anyone know why this is happening?</p>
  
  <p>Thx for any advices ;)</p>