[keycloak-user] [JBoss JIRA] (KEYCLOAK-2063) Not working link generated via REST API - Send an email-verification email to the user

Stian Thorgersen sthorger at redhat.com
Tue Dec 22 08:29:29 EST 2015


I agree. However, "send-verify-email" is deprecated and we'll eventually
remove it. It doesn't work with custom required actions so execute-actions
is the preferred usage.

On 22 December 2015 at 13:31, Andrej Prievalsky <ado.boj.83 at gmail.com>
wrote:

> Yes, I agree, too, that this 2 actions via Admin Console for  "Verify
> email" and "Update your account" are different and works fine.
>
> I think, that Issue is with API endpoint "send-verify-email" :
> - Mistake behavior:
>   verification email with subject "Update Your Account" and verification
> link:
>
> http://172.31.32.216:8080/auth/realms/universities/login-actions/execute-actions?key=KRRUrLQD8RrIqu-QbCh3i5TUwH9Bbbtu9CPpOdHwlG0.fce4040e-945f-4fb9-9ea1-e744cb61a022
>
> - Correct behavior:
>   verification email with subject  "Verify email" and verification link:
>
> http://172.31.32.216:8080/auth/realms/universities/login-actions/email-verification?code=2sdgs_wvS8kR1MMpzj6DrIVnqdyaY76zyCJ_Mga4dio.b6957365-eacc-4a23-8079-adbd88554b23&key= DT4mpFcMC5
> <http://172.31.32.216:8080/auth/realms/universities/login-actions/email-verification?code=2sdgs_wvS8kR1MMpzj6DrIVnqdyaY76zyCJ_Mga4dio.b6957365-eacc-4a23-8079-adbd88554b23&key=DT4mpFcMC5>
>
> Am I right or should both API endpoints "send-verify-email" and "execute-actions-email"
> afinished with subject "Update Your Account". ?
>
>
>
> On Tue, Dec 22, 2015 at 1:15 PM, Stian Thorgersen <sthorger at redhat.com>
> wrote:
>
>> I think that's fine. If user logs in and gets required action it has the
>> subject "Verify email", then if admin manually requests the user to perform
>> actions it has "Update your account".
>>
>> On 22 December 2015 at 13:11, Andrej Prievalsky <ado.boj.83 at gmail.com>
>> wrote:
>>
>>> Yes I mean Admin console as GUI, when user before had Email verified:
>>> OFF and I made this action via Required User Actions
>>>
>>> On Tue, Dec 22, 2015 at 11:24 AM, Stian Thorgersen <sthorger at redhat.com>
>>> wrote:
>>>
>>>> What do you mean about via GUI? Is it with verify email enabled, or
>>>> manually through admin console?
>>>>
>>>> On 22 December 2015 at 11:12, Andrej Prievalsky <ado.boj.83 at gmail.com>
>>>> wrote:
>>>>
>>>>> Yes exactly, what is in difference:
>>>>>
>>>>> When I generate Verify Email via GUI, there is different mail subject
>>>>> and verify link, too.
>>>>> - subject is "Verify email"
>>>>> - link generated in email:
>>>>>
>>>>>
>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/email-verification?code=2sdgs_wvS8kR1MMpzj6DrIVnqdyaY76zyCJ_Mga4dio.b6957365-eacc-4a23-8079-adbd88554b23&key=DT4mpFcMC5
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Dec 22, 2015 at 10:34 AM, Stian Thorgersen <
>>>>> sthorger at redhat.com> wrote:
>>>>>
>>>>>> Ok,
>>>>>>
>>>>>> So basically the issue here is with send-verify-email the subject
>>>>>> used to be "Verify email", while it's now "Update Your Account"?
>>>>>>
>>>>>> On 22 December 2015 at 09:51, Andrej Prievalsky <ado.boj.83 at gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Sorry for misunderstanding from my side.
>>>>>>> No, I am saying that in 1.7.0.Final is same subject of email for
>>>>>>>  both endpoints "send-verify-email" and "execute-actions-email" and
>>>>>>> it is "Update Your Account".
>>>>>>>
>>>>>>> On Tue, Dec 22, 2015 at 8:38 AM, Stian Thorgersen <
>>>>>>> sthorger at redhat.com> wrote:
>>>>>>>
>>>>>>>> I'm still struggling to read what you are saying..
>>>>>>>>
>>>>>>>> Are you saying that when you use the "send-verify-email" endpoint
>>>>>>>> the subject of the email is "Verify email" and when you use the
>>>>>>>> "execute-actions-email" the subject is "Update Your Account"? If so I think
>>>>>>>> that's the wanted behavior. "execute-actions-email" allows a user to
>>>>>>>> perform one or more actions.
>>>>>>>>
>>>>>>>> On 21 December 2015 at 16:31, Andrej Prievalsky <
>>>>>>>> ado.boj.83 at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> So I would like to clarify it:
>>>>>>>>>
>>>>>>>>> In version 1.6.1.Final was Sending verify email done via REST-API:
>>>>>>>>> PUT
>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/3cb6d892-8df8-45bf-a336-9ddbce1c56d0/send-verify-email
>>>>>>>>> Here was JIRA ticket 2063  created (missing code in verify link)
>>>>>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/email-verification?key=lJOE7feTo8VNfmy0OyYpowIT3yMUcJmsY9_QaV2Bd7k.160f1a4f-5f8e-4105-a4d3-0914bb890ed2
>>>>>>>>>
>>>>>>>>> In actual version 1.7.0.Final, when I check same REST-API:
>>>>>>>>> PUT
>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/0ee34d46-6d3f-4274-8aea-268bf3560e4c/send-verify-email
>>>>>>>>> I got verification email with Subject "Update Your Account" are
>>>>>>>>> running verification link
>>>>>>>>>
>>>>>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/execute-actions?key=KRRUrLQD8RrIqu-QbCh3i5TUwH9Bbbtu9CPpOdHwlG0.fce4040e-945f-4fb9-9ea1-e744cb61a022
>>>>>>>>>
>>>>>>>>> But same verification email in 1.7.0.Final I am getting with
>>>>>>>>> different REST_API:
>>>>>>>>> PUT
>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/0ee34d46-6d3f-4274-8aea-268bf3560e4c/execute-actions-email
>>>>>>>>> with body ["VERIFY_EMAIL"]
>>>>>>>>>
>>>>>>>>> In summary:
>>>>>>>>>
>>>>>>>>> Now both REST-APIs works fine in version 1.7.0.Final.
>>>>>>>>> But my question is: shouldn't be different verification email in
>>>>>>>>> subject and in link for first REST_API:
>>>>>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/execute-actions?key=KRRUrLQD8RrIqu-QbCh3i5TUwH9Bbbtu9CPpOdHwlG0.fce4040e-945f-4fb9-9ea1-e744cb61a022
>>>>>>>>> and second REST-API: PUT
>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/0ee34d46-6d3f-4274-8aea-268bf3560e4c/execute-actions-email
>>>>>>>>> with body ["VERIFY_EMAIL"]?
>>>>>>>>> Because when I do this two operation via GUI I got different
>>>>>>>>> verification emails in subject and link. First one is with subject Verify
>>>>>>>>> email and second one is Update Your Account.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Dec 17, 2015 at 10:45 AM, Stian Thorgersen <
>>>>>>>>> sthorger at redhat.com> wrote:
>>>>>>>>>
>>>>>>>>>> I don't understand what you are saying here. Can you please
>>>>>>>>>> reformulate the question?
>>>>>>>>>>
>>>>>>>>>> On 11 December 2015 at 10:55, Andrej Prievalsky <
>>>>>>>>>> ado.boj.83 at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi all,
>>>>>>>>>>>
>>>>>>>>>>> I tried to validate this issue on 1.7.0.Final, but I have
>>>>>>>>>>> question:
>>>>>>>>>>>
>>>>>>>>>>> After send two different REST-APIs:
>>>>>>>>>>> 1.) PUT
>>>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/0ee34d46-6d3f-4274-8aea-268bf3560e4c/send-verify-email
>>>>>>>>>>> and
>>>>>>>>>>> 2.) PUT
>>>>>>>>>>> http://172.31.32.216:8080/auth/admin/realms/universities/users/0ee34d46-6d3f-4274-8aea-268bf3560e4c/execute-actions-email
>>>>>>>>>>> with body ["VERIFY_EMAIL"]
>>>>>>>>>>>
>>>>>>>>>>> I got for both REST APIs email with Subject "Update Your
>>>>>>>>>>> Account" and link generated in email:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/execute-actions?key=KRRUrLQD8RrIqu-QbCh3i5TUwH9Bbbtu9CPpOdHwlG0.fce4040e-945f-4fb9-9ea1-e744cb61a022
>>>>>>>>>>>
>>>>>>>>>>> What is in different when I generate Verify Email via GUI
>>>>>>>>>>> when Subject is "Verify email" and link generated in email:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> http://172.31.32.216:8080/auth/realms/universities/login-actions/email-verification?code=2sdgs_wvS8kR1MMpzj6DrIVnqdyaY76zyCJ_Mga4dio.b6957365-eacc-4a23-8079-adbd88554b23&key=DT4mpFcMC5
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Should it be so now correct or something was changed or
>>>>>>>>>>> something is incorrect on my side?
>>>>>>>>>>>
>>>>>>>>>>> Thanks.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Nov 30, 2015 at 1:18 PM, Stian Thorgersen (JIRA) <
>>>>>>>>>>> issues at jboss.org> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Stian Thorgersen
>>>>>>>>>>>> <https://issues.jboss.org/secure/ViewProfile.jspa?name=stianst>
>>>>>>>>>>>> *updated* [image: Bug] KEYCLOAK-2063
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063>   Keycloak
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK> / [image: Bug]
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063> KEYCLOAK-2063
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063> Not working
>>>>>>>>>>>> link generated via REST API - Send an email-verification email to the user
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063> Change By: Stian
>>>>>>>>>>>> Thorgersen
>>>>>>>>>>>> <https://issues.jboss.org/secure/ViewProfile.jspa?name=stianst> Status:
>>>>>>>>>>>> Pull Request Sent Resolved Resolution: Done [image: Add
>>>>>>>>>>>> Comment]
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063#add-comment> Add
>>>>>>>>>>>> Comment
>>>>>>>>>>>> <https://issues.jboss.org/browse/KEYCLOAK-2063#add-comment>   This
>>>>>>>>>>>> message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) [image:
>>>>>>>>>>>> Atlassian logo]
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> keycloak-user mailing list
>>>>>>>>>>> keycloak-user at lists.jboss.org
>>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151222/73937256/attachment-0001.html 


More information about the keycloak-user mailing list