new configuration version
This commit is contained in:
		
							parent
							
								
									e91e06e1a9
								
							
						
					
					
						commit
						e9460d00d5
					
				|  | @ -45,7 +45,7 @@ spec: | ||||||
|   podDisruptionBudget: |   podDisruptionBudget: | ||||||
|     maxUnavailable: "50%" |     maxUnavailable: "50%" | ||||||
|   git: |   git: | ||||||
|     tag: "r-3fab31267c332ae6196564e54f92f81ee4f19d6a" |     tag: "r-96c71dfed47d4f1ab987933655eca864b70f86ec" | ||||||
|     dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth" |     dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth" | ||||||
|     credentials: "git-credentials" |     credentials: "git-credentials" | ||||||
|   keystores: |   keystores: | ||||||
|  |  | ||||||
|  | @ -39,9 +39,7 @@ if(loa_str){ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // BUNDBITBK-5005: Set cookie to remember the last authentication method | // BUNDBITBK-5005: Set cookie to remember the last authentication method | ||||||
| //response.setCookie("LOGINMETHOD", AUTHENTICATON_URN_TO_COOKIE_MAPPER[session.getAttribute('authenticatedWith')], "/", parameters.get('cookie.domain'), Duration.ofDays(7), true, true) |  | ||||||
| def agovAuthMethodCookie = "LOGINMETHOD=${AUTHENTICATON_URN_TO_COOKIE_MAPPER[session.getAttribute('authenticatedWith')]}; Domain=${parameters.get('cookie.domain')}; Path=/; Max-Age=1800; SameSite=Strict; Secure; HttpOnly" | def agovAuthMethodCookie = "LOGINMETHOD=${AUTHENTICATON_URN_TO_COOKIE_MAPPER[session.getAttribute('authenticatedWith')]}; Domain=${parameters.get('cookie.domain')}; Path=/; Max-Age=1800; SameSite=Strict; Secure; HttpOnly" | ||||||
| LOG.error("AuthCookie: " + agovAuthMethodCookie) |  | ||||||
| response.setHeader('Set-Cookie2', agovAuthMethodCookie) | response.setHeader('Set-Cookie2', agovAuthMethodCookie) | ||||||
| 
 | 
 | ||||||
| // delete the login cookie | // delete the login cookie | ||||||
|  |  | ||||||
|  | @ -204,6 +204,8 @@ | ||||||
|                     <!-- source: pattern://f63c475c35b616b7c6c1901c --> |                     <!-- source: pattern://f63c475c35b616b7c6c1901c --> | ||||||
|                     <GuiElem name="authRequestId" type="hidden" value="${sess:ch.nevis.auth.saml.request.id}" optional="true"/> |                     <GuiElem name="authRequestId" type="hidden" value="${sess:ch.nevis.auth.saml.request.id}" optional="true"/> | ||||||
|                     <!-- source: pattern://f63c475c35b616b7c6c1901c --> |                     <!-- source: pattern://f63c475c35b616b7c6c1901c --> | ||||||
|  |                     <GuiElem name="lastLoginMethod" type="hidden" value="${cookie:LOGINMETHOD}" optional="true"/> | ||||||
|  |                     <!-- source: pattern://f63c475c35b616b7c6c1901c --> | ||||||
|                     <GuiElem name="fallback" type="button" label="mobile_auth.cancel.button.label" value="true" optional="true"/> |                     <GuiElem name="fallback" type="button" label="mobile_auth.cancel.button.label" value="true" optional="true"/> | ||||||
|                 </Gui> |                 </Gui> | ||||||
|             </Response> |             </Response> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue