BasicFilter AuthHelper.containsAuthenticationData(httpRequest) returns false

%3CLINGO-SUB%20id%3D%22lingo-sub-1926182%22%20slang%3D%22en-US%22%3EBasicFilter%20AuthHelper.containsAuthenticationData(httpRequest)%20returns%20false%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1926182%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20referring%26nbsp%3BJava%20code%20for%20Azure%20AD%20SSO.%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsamples%2Fazure-samples%2Factive-directory-java-webapp-openidconnect%2Fintegrating-azure-ad-into-a-java-web-application%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsamples%2Fazure-samples%2Factive-directory-java-webapp-openidconnect%2Fintegrating-azure-ad-into-a-java-web-application%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20check%20the%20sample%20Java%20Azure%20AD%20project%20provided%20by%20Microsoft%20and%20I%20am%20getting%20an%20error%20when%20trying%20to%20authenticate%3C%2FP%3E%3CP%3EI%20created%20my%20app%2C%20so%20I%20have%20my%20client_id%2C%20whose%20Sign-On%20URL%20is%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Flocalhost%3A8181%2Fadal4jsample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Flocalhost%3A8181%2Fadal4jsample%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3EThen%2C%20I%20configured%20my%20tenant%20name%20and%20client%20id%20in%20the%20web.xml%2C%20and%20once%20I%20launch%20the%20web%20app%20I%20can%20%22log%20in%22%20but%2C%20when%20I%20come%20back%20to%20my%20domain%20I%20see%20the%20error.%20jsp%20page.%3C%2FP%3E%3CP%3EAfter%20debugging%2C%20I%20can%20see%20that%3C%2FP%3E%3CP%3EAuthHelper.containsAuthenticationData(httpRequest)%3CBR%20%2F%3Eis%20giving%20false%20because%20the%20request%20parameter%20map%20does%20not%20contain%20the%20ID_TOKEN%20or%20CODE.%20Actually%2C%20it%20is%20empty.%26nbsp%3B%20Below%20method%20returns%20false%2C%20getting%20all%20filed%20as%20false.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Contain%20Auth%20Data.PNG%22%20style%3D%22width%3A%20671px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F235740i0465A3DCDCA61D07%2Fimage-dimensions%2F671x138%3Fv%3D1.0%22%20width%3D%22671%22%20height%3D%22138%22%20role%3D%22button%22%20title%3D%22Contain%20Auth%20Data.PNG%22%20alt%3D%22Contain%20Auth%20Data.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1926182%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESSO%20Integration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Visitor

I am referring Java code for Azure AD SSO. 
https://docs.microsoft.com/en-us/samples/azure-samples/active-directory-java-webapp-openidconnect/in...

I am trying to check the sample Java Azure AD project provided by Microsoft and I am getting an error when trying to authenticate

I created my app, so I have my client_id, whose Sign-On URL is
http://localhost:8181/adal4jsample.

Then, I configured my tenant name and client id in the web.xml, and once I launch the web app I can "log in" but, when I come back to my domain I see the error. jsp page.

After debugging, I can see that

AuthHelper.containsAuthenticationData(httpRequest)
is giving false because the request parameter map does not contain the ID_TOKEN or CODE. Actually, it is empty.  Below method returns false, getting all filed as false.

Contain Auth Data.PNG

0 Replies