You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For B2B scenarios, the context.subject() becomes null when comes to second step, even through there is a authenticated user from the previous step. Due to this, following errors occurred.
In a sub organization, create a local authenticator and use it as a second step. Got following error,
TID: [25237] Tenant: [00bdf7be-f70c-46ad-9085-66c0ae23070a] [2025-02-27 06:00:30,820] [20250227T060030Z-167c755789djnhhnhC1SG1sch000000003cg000000003nzm] : iam-cloud-carbon : ERROR {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator} - Exception in Authentication Framework java.lang.NullPointerException: null| at org.wso2.carbon.identity.application.authentication.framework.AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticator.java:117) ~[org.wso2.carbon.identity.application.authentication.framework_7.8.23.jar:?]| at org.wso2.carbon.identity.application.authenticator.adapter.internal.AbstractAuthenticatorAdapter.process(AbstractAuthenticatorAdapter.java:108) ~[?:?]| at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.doAuthentication(DefaultStepHandler.java:747) ~[org.wso2.carbon.identity.application.authentication.framework_7.8.23.jar:?]| at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handleResponse(DefaultStepHandler.java:702) ~[org.wso2.carbon.identity.application.authentication.framework_7.8.23.jar:?]| at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handle(DefaultStepHandler.java:252) ~[org.wso2.carbon.identity.application.authentication.framework_7.8.23.jar:?]| at org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handle(DefaultStepBasedSequenceHandler.java:215)
In sub org login flow, when 2FA authenticator is engaged in the currently authenticated user details are not in request to the external authentication service.
Thisara-Welmilla
changed the title
Error occured with custom authenticator in B2B login flows due to subject
Error occured with custom authenticator in B2B login flows
Mar 1, 2025
Description
Feature issue:
For B2B scenarios, the context.subject() becomes null when comes to second step, even through there is a authenticated user from the previous step. Due to this, following errors occurred.
{\n' + " actionType: 'AUTHENTICATION',\n" + " flowId: '587d6c07-29ec-4010-b196-3a06c329bf10',\n" + ' event: {\n' + " tenant: { id: '25237', name: '00bdf7be-f70c-46ad-9085-66c0ae23070a' },\n" + ' application: {\n' + " id: 'f632cc97-7d61-401e-a8f2-0e0149a9e20d',\n" + " name: 'oidcdebugger'\n" + ' },\n' + ' currentStepIndex: 2,\n' + " authenticatedSteps: [ { index: 1, name: 'BasicAuthenticator' } ]\n" + ' },\n' + " allowedOperations: [ { op: 'redirect' } ]\n" + '}'
Steps to Reproduce
Scenario 1:
Scenario 2:
Version
7.1.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: