Accessing user credentials in webflow (CAS 5.0)?

88 views
Skip to first unread message

Adam Causey

unread,
May 12, 2017, 5:07:32 PM5/12/17
to cas-...@apereo.org
Is there a way to get a user's credentials in CAS 5.0.5 when extending the Webflow? I am using this as an example on extending the flow: https://apereo.github.io/2016/10/07/webflow-extcfg/ . I need to get the user's entered credentials in my particular use case, but can't figure out how to get to them.

Thanks!

-Adam


Ben Howell-Thomas

unread,
May 15, 2017, 11:56:46 AM5/15/17
to cas-...@apereo.org
I think this from login-webflow.xml already puts them into "credential" :

<view-state id="viewLoginForm" view="casLoginView" model="credential">
        <binder>
            <binding property="username" required="true"/>
            <binding property="password" required="true"/>
        </binder>

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAN6MV5PmHAd4A-Rb1nS35Bm8h5ft9OxVA3Lprx4BWxzWERapnA%40mail.gmail.com.


This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1908 264500 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NN.  Rave Technologies (India) Pvt Limited, registered in India under number 117068 with a registered address of 2nd Floor, Ballard House, Adi Marzban Marg, Ballard Estate, Mumbai, Maharashtra, India, 400001.

Adam Causey

unread,
May 15, 2017, 1:16:54 PM5/15/17
to cas-...@apereo.org
Thanks for the response. Any idea how to actually access that credential model in Java code within the WebflowConfigurer?

On Mon, May 15, 2017 at 11:56 AM, Ben Howell-Thomas <ben.howe...@northgateps.com> wrote:
I think this from login-webflow.xml already puts them into "credential" :

<view-state id="viewLoginForm" view="casLoginView" model="credential">
        <binder>
            <binding property="username" required="true"/>
            <binding property="password" required="true"/>
        </binder>
On 12 May 2017 at 22:07, Adam Causey <apca...@vcu.edu> wrote:
Is there a way to get a user's credentials in CAS 5.0.5 when extending the Webflow? I am using this as an example on extending the flow: https://apereo.github.io/2016/10/07/webflow-extcfg/ . I need to get the user's entered credentials in my particular use case, but can't figure out how to get to them.

Thanks!

-Adam


--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1908 264500 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NN.  Rave Technologies (India) Pvt Limited, registered in India under number 117068 with a registered address of 2nd Floor, Ballard House, Adi Marzban Marg, Ballard Estate, Mumbai, Maharashtra, India, 400001.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

Ben Howell-Thomas

unread,
May 16, 2017, 12:36:20 PM5/16/17
to cas-...@apereo.org
Not sure what the WebflowConfigurer is, sorry.  If you had a custom Action though you could probably pass the credentials object to it.

eg/partial guess :
<evaluate expression="myAction.myMethod(credential)" result="credential.username"/>

and in case it's helpful to state the obvious, you'd put the following in an @Configuration class :

    @Bean
    public MyAction myAction() {
        return new MyAction();
    }
 

On 15 May 2017 at 18:16, Adam Causey <apca...@vcu.edu> wrote:
Thanks for the response. Any idea how to actually access that credential model in Java code within the WebflowConfigurer?

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
Reply all
Reply to author
Forward
0 new messages