Skip to content

Commit ddc64db

Browse files
authored
Merge branch 'master' into userResExec
2 parents 4649ad7 + 1892fe0 commit ddc64db

8 files changed

Lines changed: 14 additions & 9 deletions

File tree

  • components
    • org.wso2.carbon.identity.application.authentication.handler.identifier
    • org.wso2.carbon.identity.application.authentication.handler.session
    • org.wso2.carbon.identity.application.authenticator.basicauth.jwt
    • org.wso2.carbon.identity.application.authenticator.basicauth
  • features/org.wso2.carbon.identity.application.authenticator.basicauth.server.feature

components/org.wso2.carbon.identity.application.authentication.handler.identifier/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
2424
<artifactId>identity-application-auth-basicauth</artifactId>
25-
<version>6.8.35-SNAPSHOT</version>
25+
<version>6.8.37-SNAPSHOT</version>
2626
<relativePath>../../pom.xml</relativePath>
2727
</parent>
2828

components/org.wso2.carbon.identity.application.authentication.handler.identifier/src/main/java/org/wso2/carbon/identity/application/authentication/handler/identifier/IdentifierHandler.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.wso2.carbon.identity.application.authenticator.basicauth.util.BasicAuthErrorConstants.ErrorMessages;
4646
import org.wso2.carbon.identity.application.authenticator.basicauth.util.AutoLoginUtilities;
4747
import org.wso2.carbon.identity.application.common.model.User;
48+
import org.wso2.carbon.identity.base.IdentityConstants;
4849
import org.wso2.carbon.identity.base.IdentityRuntimeException;
4950
import org.wso2.carbon.identity.central.log.mgt.utils.LogConstants;
5051
import org.wso2.carbon.identity.central.log.mgt.utils.LoggerUtils;
@@ -651,7 +652,11 @@ protected void processAuthenticationResponse(HttpServletRequest request,
651652
username = FrameworkUtils.prependUserStoreDomainToName(username);
652653
authProperties.put("username", username);
653654

654-
persistUsername(context, username);
655+
if (Boolean.parseBoolean(IdentityUtil.getProperty(IdentityConstants.ServerConfig.IDENTIFIER_AS_USERNAME))) {
656+
persistUsername(context, identifierFromRequest);
657+
} else {
658+
persistUsername(context, username);
659+
}
655660

656661
if (userStoreDomain == null) {
657662
userStoreDomain = IdentityUtil.extractDomainFromName(username);

components/org.wso2.carbon.identity.application.authentication.handler.session/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
2222
<artifactId>identity-application-auth-basicauth</artifactId>
23-
<version>6.8.35-SNAPSHOT</version>
23+
<version>6.8.37-SNAPSHOT</version>
2424
<relativePath>../../pom.xml</relativePath>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>

components/org.wso2.carbon.identity.application.authenticator.basicauth.jwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>identity-application-auth-basicauth</artifactId>
2323
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
24-
<version>6.8.35-SNAPSHOT</version>
24+
<version>6.8.37-SNAPSHOT</version>
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>

components/org.wso2.carbon.identity.application.authenticator.basicauth/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
2121
<artifactId>identity-application-auth-basicauth</artifactId>
2222
<relativePath>../../pom.xml</relativePath>
23-
<version>6.8.35-SNAPSHOT</version>
23+
<version>6.8.37-SNAPSHOT</version>
2424
</parent>
2525

2626
<modelVersion>4.0.0</modelVersion>

components/org.wso2.carbon.identity.application.authenticator.basicauth/src/test/java/org/wso2/carbon/identity/application/authenticator/basicauth/PasswordOnboardExecutorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void setUp() {
5353
}
5454

5555
@Test
56-
public void testPasswordRequiredState() throws Exception {
56+
public void testPasswordRequiredState() {
5757

5858
Map<String, String> userInputData = new HashMap<>();
5959
when(mockFlowExecContext.getUserInputData()).thenReturn(userInputData);
@@ -65,7 +65,7 @@ public void testPasswordRequiredState() throws Exception {
6565
}
6666

6767
@Test
68-
public void testPasswordProvidedState() throws Exception {
68+
public void testPasswordProvidedState() {
6969

7070
Map<String, String> userInputData = new HashMap<>();
7171
userInputData.put(PASSWORD, "P@ssw0rd");

features/org.wso2.carbon.identity.application.authenticator.basicauth.server.feature/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
2323
<artifactId>identity-application-auth-basicauth</artifactId>
2424
<relativePath>../../pom.xml</relativePath>
25-
<version>6.8.35-SNAPSHOT</version>
25+
<version>6.8.37-SNAPSHOT</version>
2626
</parent>
2727

2828
<modelVersion>4.0.0</modelVersion>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<groupId>org.wso2.carbon.identity.application.auth.basic</groupId>
2828
<modelVersion>4.0.0</modelVersion>
29-
<version>6.8.35-SNAPSHOT</version>
29+
<version>6.8.37-SNAPSHOT</version>
3030
<artifactId>identity-application-auth-basicauth</artifactId>
3131
<packaging>pom</packaging>
3232
<name>WSO2 Carbon - BasicAuth Identity Application Authenticator Module</name>

0 commit comments

Comments
 (0)