Skip to content

Commit

Permalink
WFLY-10514: fixes admin user credentials hardcode in client, to match…
Browse files Browse the repository at this point in the history
… docs
  • Loading branch information
emmartins committed Jun 6, 2018
1 parent fb8c322 commit 45b4a19
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public static void main(String[] args) throws Exception {

// now lets programmatically setup an authentication context to switch users before invoking the intermediate bean
AuthenticationConfiguration superUser = AuthenticationConfiguration.empty().setSaslMechanismSelector(SaslMechanismSelector.NONE.addMechanism("PLAIN")).
useName("superUser").usePassword("superPwd1!");
useName("quickstartAdmin").usePassword("adminPwd1!");
final AuthenticationContext authCtx = AuthenticationContext.empty().with(MatchRule.ALL, superUser);
AuthenticationContext.getContextManager().setThreadDefault(authCtx);
invokeIntermediateBean();
Expand Down

0 comments on commit 45b4a19

Please sign in to comment.