[mitreid-connect] Augment Approval form

Justin Richer jricher at mit.edu
Wed Jun 14 12:19:49 EDT 2017


It’s served by OAuthConfirmationController, and the client object is injected in there. You can inject additional objects by either overriding that controller (not recommended) or by using an interceptor. Unfortunately we don’t have a good hook for custom interceptors at the moment, as they’re all configured in the application-context.xml file.

Your best bet would be to have a custom version of ConnectOAuth2RequestFactory that sets up the authorization request object, which is also available to the page as “auth_request”. This object has an Extensions map which can have whatever additional information you want. 

 — Justin

> On Jun 14, 2017, at 12:07 PM, Luiz Omori <luiz.omori at duke.edu> wrote:
> 
> Humm, that page has access to a client object. That’s from client.js? How are the elements loaded into it? I need to inject the selection options there and get it back upon approval.
>  
> Regards,
> Luiz
>  
> From: Justin Richer <jricher at mit.edu>
> Date: Tuesday, June 13, 2017 at 5:10 PM
> To: Luiz Omori <luiz.omori at duke.edu>
> Cc: "mitreid-connect at mit.edu" <mitreid-connect at mit.edu>
> Subject: Re: [mitreid-connect] Augment Approval form
>  
> It’s approve.jsp. 
>  
>  — Justin
>  
> On Jun 13, 2017, at 4:47 PM, Luiz Omori <luiz.omori at duke.edu <mailto:luiz.omori at duke.edu>> wrote:
>  
> Hello,
>  
> We need to augment/enhance/replace the approval form to allow the user to make a selection like below. The items to be selected are dependent on the user that is logging in.
>  
> Select Proxy Patient
>  
> [ ] John Father               [ ] Baby Child 2           [ ] Baby Child 1
>  
> The selection should be sent back to the server and stored along with the authentication.
>  
> I looked into the code but so far failed to see how to replace that page. Any suggestions?
>  
> Regards,
> Luiz
> _______________________________________________
> mitreid-connect mailing list
> mitreid-connect at mit.edu <mailto:mitreid-connect at mit.edu>
> http://mailman.mit.edu/mailman/listinfo/mitreid-connect <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.mit.edu_mailman_listinfo_mitreid-2Dconnect&d=DwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=R6m41WT3w_KtulQAsSIxc_C2mwuKoWSycEMpss0QQJA&m=qAoIkMQZt3o0ZY8j-OQ-MCkIJ5uJNqxiF8TNScmqQDE&s=NOUnn5KWovzUN-IvD79XMbN1IymNfM2q9f5fcJo9lqg&e=>
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mitreid-connect/attachments/20170614/70d49d79/attachment-0001.html


More information about the mitreid-connect mailing list