John Liljegren
06/15/2023, 4:28 PMbdw429s
06/15/2023, 4:32 PMbdw429s
06/15/2023, 4:32 PMJohn Liljegren
06/15/2023, 4:33 PMbdw429s
06/15/2023, 4:33 PMbdw429s
06/15/2023, 4:33 PMJohn Liljegren
06/15/2023, 4:34 PMbdw429s
06/15/2023, 4:35 PMGSSAPIAuthenticationMechanism
that CommandBox could tap into which supports kerberos and I THINK can provide actual windows authbdw429s
06/15/2023, 4:35 PMbdw429s
06/15/2023, 4:37 PMremote_user
is set, but I don't see it setting auth_user
unless it's part of the request attributesbdw429s
06/15/2023, 4:38 PMHTTPServletRequest.getRemoteUser()
John Liljegren
06/15/2023, 4:38 PMJohn Liljegren
06/15/2023, 4:39 PMGSSAPIAuthenticationMechanism
be tapped into at runtime?bdw429s
06/15/2023, 4:40 PMJohn Liljegren
06/15/2023, 4:41 PMJohn Liljegren
06/15/2023, 4:41 PMbdw429s
06/15/2023, 4:42 PMbdw429s
06/15/2023, 4:42 PMbdw429s
06/15/2023, 4:42 PMbdw429s
06/15/2023, 4:43 PMbdw429s
06/15/2023, 4:44 PMRemoteUserAttribute
to be written, only read so setting it in a server rule won't workbdw429s
06/15/2023, 4:44 PMbdw429s
06/15/2023, 4:44 PMbdw429s
06/15/2023, 4:45 PMbdw429s
06/15/2023, 4:45 PMJohn Liljegren
06/15/2023, 4:46 PMbdw429s
06/15/2023, 4:46 PMbdw429s
06/15/2023, 4:46 PMgetPageContext().getRequest().setAttribute( 'AUTH_USER', 'my-value' ) );0
☝️ Note this is case sensitive on the key namesbdw429s
06/15/2023, 4:47 PMAUTH_USER
, that's one that adobe has specific code for, so you'd have to test to see if Adobe checks the request attributes first or lastbdw429s
06/15/2023, 4:47 PMbdw429s
06/15/2023, 4:48 PMgetAuthUser()
method so the cgi scope is only touched there and then you can swap out the mechanism to get the value on dev inside that method to mock it.bdw429s
06/15/2023, 4:49 PMJohn Liljegren
06/15/2023, 4:50 PMgetPageContext().getRequest().setAttribute( 'AUTH_USER', 'my-value' ) );
? which lifecycle method in coldbox?John Liljegren
06/15/2023, 4:51 PMbdw429s
06/15/2023, 4:51 PMbdw429s
06/15/2023, 4:51 PMJohn Liljegren
06/15/2023, 4:53 PMbdw429s
06/15/2023, 4:53 PMbdw429s
06/15/2023, 4:53 PMbdw429s
06/15/2023, 4:54 PMbdw429s
06/15/2023, 4:54 PMJohn Liljegren
06/15/2023, 4:55 PMbdw429s
06/15/2023, 4:55 PMbdw429s
06/15/2023, 4:55 PMbdw429s
06/15/2023, 4:56 PMJohn Liljegren
06/15/2023, 4:57 PMJohn Liljegren
06/15/2023, 4:57 PM