<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0px;
        margin-bottom:0px}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" dir="ltr">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">The LDAP project works by overlaying configuration on top of the regular server, so you have to tell it which version to use. Update the dependency in the LDAP overlay's pom.xml
file to the latest version, and it should be fixed (along with other things). I'll go update the version in GitHub in a minute, too.<br>
<br>
-- Justin<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF36626"><font face="Tahoma" color="#000000" size="2"><b>From:</b> Felipe Polo-Wood [felipe.polowood@duke.edu]<br>
<b>Sent:</b> Tuesday, December 09, 2014 2:52 PM<br>
<b>To:</b> Justin P Richer; mitreid-connect@mit.edu<br>
<b>Subject:</b> Re: Null Pointer Exception<br>
</font><br>
</div>
<div></div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Inconsolata">
<p>Hi Justin,<br>
</p>
<p><br>
</p>
<p>I think I have a better understanding now. Since I couldn't create new System Scopes (gives me a blank page... which from GitHub appears to have been fixed on a different branch, but not on the ldap version <a href="https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/675" id="lnk976622" target="_blank">https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/issues/675</a>),
I was creating the scopes on the specific client. Since the application requires those scopes, that was the only way to get it pass the the "Invalid scope" response. So, it now goes a little further, but it chokes when it doesn't find them as system scopes.​<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-size:13px; font-family:Tahoma">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Felipe Polo-Wood<br>
Sr. Manager<br>
Clinical Applications Technical Services</div>
<div class="PlainText">Office: +1.919.668.2268<br>
Mobile: +1.919.741.4213<br>
</div>
</font></div>
</div>
</div>
</div>
<div dir="ltr" style="color:rgb(33,33,33)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Justin P Richer <jricher@mit.edu><br>
<b>Sent:</b> Tuesday, December 09, 2014 2:43 PM<br>
<b>To:</b> Felipe Polo-Wood; mitreid-connect@mit.edu<br>
<b>Subject:</b> RE: Null Pointer Exception</font>
<div> </div>
</div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">That's very strange, that particular line is dealing with the system scopes, which shouldn't be null at all by there. If anything, they should be an empty set, and it should pass
through. Please file an issue with the main project and we'll look into the details and see if we can replicate it.<br>
<br>
-- Justin<br>
<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF857316" style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b> mitreid-connect-bounces@mit.edu [mitreid-connect-bounces@mit.edu] on behalf of Felipe Polo-Wood [felipe.polowood@duke.edu]<br>
<b>Sent:</b> Tuesday, December 09, 2014 2:01 PM<br>
<b>To:</b> mitreid-connect@mit.edu<br>
<b>Subject:</b> [mitreid-connect] Null Pointer Exception<br>
</font><br>
</div>
<div></div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Inconsolata">
<div dir="ltr" style="color:rgb(33,33,33)">
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Inconsolata">
<div dir="ltr" style="color:rgb(33,33,33)">
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Inconsolata">
<p>​We have set up the ldap-openid-connect-server for testing and I am able to login directly, but it is failing to authenticate my client. The following URL, brings up the credentials screen, but then after the login it throws an Exception.<br>
</p>
<p><br>
</p>
<p></p>
<p><a href="http://vml-catstools2:8080/ldap-openid-connect-server/authorize?client_id=OnRampTestClient&redirect_uri=smartapp://callback&scope=launch/patient%20user/*.*%20patient/*.read%20openid%20profile&response_type=code&state=4D640684" id="lnk495922" target="_blank">http://vml-catstools2:8080/ldap-openid-connect-server/authorize?client_id=OnRampTestClient&redirect_uri=smartapp://callback&scope=launch/patient%20user/*.*%20patient/*.read%20openid%20profile&response_type=code&state=4D640684</a><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>incluying relevant lines:<br>
</p>
<pre>java.lang.NullPointerException
        org.mitre.oauth2.web.OAuthConfirmationController.confimAccess(OAuthConfirmationController.java:154)
        org.mitre.oauth2.web.OAuthConfirmationController$$FastClassByCGLIB$$608f3ba8.invoke(<generated>)
        org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
        org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)
        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
        org.mitre.oauth2.web.OAuthConfirmationController$$EnhancerByCGLIB$$151ff338.confimAccess(<generated>)​<br></pre>
<p><br>
</p>
<p>I have played with the settings in the "Manage Clients" screen, but without documentation, it is hard to know what to do there... but I keep getting this error. Is this an error with the LDAP configuration?<br>
</p>
<p><br>
</p>
<p>I appreciate your help.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-size:13px; font-family:Tahoma">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Felipe Polo-Wood<br>
</div>
<div class="PlainText">Office: +1.919.668.2268<br>
Mobile: +1.919.741.421<br>
</div>
</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>