temp fix for contributor SAML PR
This commit is contained in:
parent
3b347d5f52
commit
5c6dd8e0c3
2 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,7 @@ public class SamlProtocol implements LoginProtocol {
|
|||
if(nameIdFormat.equals(JBossSAMLURIConstants.NAMEID_FORMAT_EMAIL.get())) {
|
||||
return userSession.getUser().getEmail();
|
||||
} else if(nameIdFormat.equals(JBossSAMLURIConstants.NAMEID_FORMAT_TRANSIENT.get())) {
|
||||
return clientSession.getNote(ClientSessionCode.ACTION_KEY);
|
||||
return userSession.getUser().getUsername();
|
||||
} else {
|
||||
// TODO: Support for persistent NameID (pseudo-random identifier persisted in user object)
|
||||
return userSession.getUser().getUsername();
|
||||
|
|
|
@ -83,6 +83,7 @@ public class SamlBindingTest {
|
|||
Assert.assertEquals(driver.getCurrentUrl(), "http://localhost:8081/auth/realms/demo/protocol/saml");
|
||||
loginPage.login("bburke", "password");
|
||||
Assert.assertEquals(driver.getCurrentUrl(), "http://localhost:8081/sales-post/");
|
||||
System.out.println(driver.getPageSource());
|
||||
Assert.assertTrue(driver.getPageSource().contains("bburke"));
|
||||
driver.navigate().to("http://localhost:8081/sales-post?GLO=true");
|
||||
Assert.assertEquals(driver.getCurrentUrl(), "http://localhost:8081/auth/realms/demo/protocol/saml");
|
||||
|
|
Loading…
Reference in a new issue