When I declare it as below, CAS still use its UsernamePasswordCredential.

<var name="credential" class="MyUsernamePasswordCredential" />

I could use MyUsernamePasswordCredential only if  I change the var name in 
the login-webflow and loginform as below :

<var name="myCredential" class="MyUsernamePasswordCredential" />

<form method="post" id="fm1" th:object="${myCredential}">

However this lead me to another problems like :

java.lang.IllegalArgumentException: No authentication result builder can be 
located in the context
    at org.apereo.cas.web.flow.resolver.impl.
InitialAuthenticationAttemptWebflowEventResolver.resolveInternal(
InitialAuthenticationAttemptWebflowEventResolver.java:71) ~[cas-server-core-
webflow-5.0.0.RC1.jar:5.0.0.RC1]
    at org.apereo.cas.web.flow.resolver.impl.AbstractCasWebflowEventResolver
.resolve(AbstractCasWebflowEventResolver.java:427) ~[cas-server-core-webflow
-5.0.0.RC1.jar:5.0.0.RC1]



Do I have to change the var name ? What do you suggest ?

Thank you.

10 Kasım 2016 Perşembe 12:33:00 UTC+3 tarihinde john c yazdı:
>
> 1. declare MyUsernamePasswordCredential in  your webflow.xml
> 2. support MyUsernamePasswordCredential in  your authentication handler
> 3. you need a configer class to reg your handler into cas, load configer 
> info etc...
>
> take a look :
>
> https://github.com/apereo/cas/tree/v5.0.0/support/cas-server-support-yubikey
>
>
> 在 2016年9月20日星期二 UTC+8下午10:08:53,Gokhan Mansuroglu写道:
>>
>> I have a problem with this configuration. I have a 
>> MyUsernamePasswordCredential that extends UsernamePasswordCredential, but 
>> unfortunately I can't bind this model in the flow. How is that possible ?
>>
>> Thank you.
>>
>> 9 Eylül 2016 Cuma 15:18:03 UTC+3 tarihinde Gokhan Mansuroglu yazdı:
>>>
>>> Hi Misagh,
>>>
>>> Thank you for your link, I am trying to figure it out. However there is 
>>> definetely a need for a step by step guide.
>>>
>>> 8 Eylül 2016 Perşembe 12:17:03 UTC+3 tarihinde Misagh Moayyed yazdı:
>>>>
>>>> Example: 
>>>> https://github.com/apereo/cas/blob/master/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/config/DigestAuthenticationConfiguration.java#L128
>>>>
>>>> -- 
>>>> Misagh
>>>>
>>>> From: Gokhan Mansuroglu <gokhan.m...@gmail.com>
>>>> Reply: Gokhan Mansuroglu <gokhan.m...@gmail.com>
>>>> Date: September 8, 2016 at 1:17:32 PM
>>>> To: CAS Community <cas...@apereo.org>
>>>> Subject:  [cas-user] Custom Authentication Handler in version 5.0.0 
>>>>
>>>> Hi,
>>>>
>>>> Let's say I have a custom AbcAuthencticationHandler and AbcCredentials. 
>>>> How can i configure this custom auhtentication handler ? In previous 
>>>> versions this can be handled in deployerConfigContext.xml, but how it is 
>>>> done in version 5.0.0 ?
>>>>
>>>> Thanks.
>>>> --
>>>> 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.
>>>> To post to this group, send email to cas-...@apereo.org.
>>>> Visit this group at 
>>>> https://groups.google.com/a/apereo.org/group/cas-user/.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/0a0ba25b-2dff-4cae-aa1b-a639cd629bc9%40apereo.org
>>>>  
>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/0a0ba25b-2dff-4cae-aa1b-a639cd629bc9%40apereo.org?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/a/apereo.org/d/optout
>>>> .
>>>>
>>>> -- 
>>> 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.
>>> To post to this group, send email to cas-...@apereo.org.
>>> Visit this group at 
>>> https://groups.google.com/a/apereo.org/group/cas-user/.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/9a92aede-f879-4387-ad16-cdecbfffbd8b%40apereo.org
>>>  
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/9a92aede-f879-4387-ad16-cdecbfffbd8b%40apereo.org?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>>>
>>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/aad1c5cc-1652-4fdf-bcb4-9e0a971b04ec%40googlegroups.com.

Reply via email to