Closed DimuthuKasunWP closed 1 year ago
https://localhost:9443/authenticationendpoi/login.do?client_id=T4I8EWc52TNesNJ7eSpaY1CfMKIa&commonAuthCallerPath=%2Foauth2%2Fauthorize&forceAuth=false&passiveAuth=false&redirect_uri=https%3A%2F%2Flocalhost%3A3000&response_type=code&scope=openid+address+email+profile&tenantDomain=mad.com&sessionDataKey=0f1e578f-3d39-44d6-95da-c5239b02f2ac&relyingParty=T4I8EWc52TNesNJ7eSpaY1CfMKIa&type=oidc&sp=sample&isSaaSApp=false&authenticators=BasicAuthenticator%3ALOCAL
THe resend email feature is not working in the self-registration email verification for tenants.
This issue is in the self-registration flow for tenants. For the super tenant, this is working as expected. Seems this issue is caused because we are invoking the super tenant's "/api/identity/user/v1.0/resend-code" API even for the users in the tenant. When we use the tenanted API(/t//api/identity/user/v1.0/resend-code) the resend email is working fine.
In the authenticationendpoint/basicauth.jsp file the tenant domain is retrieving from [1] and it is returning the correct tenant name if we have entered the tenant name appended username from the UI. The Resend email is received if we enter the username which contains the tenantDomain. Eg : testuser-22@tenant1.com
Other times it is not working. Eg : testuser-22
[1]https://github.com/wso2/carbon-identity-framework/blob/v5.18.187/components/authentication-framework/org.wso2.carbon.identity.application.authentication.endpoint.util/src/main/java/org/wso2/carbon/identity/application/authentication/endpoint/util/AuthenticationEndpointUtil.java#L115
Product : wso2is-5.11.0