[keycloak-user] Reset password - direct URL

Mariusz Chruscielewski - Info.nl mariusz at info.nl
Wed Apr 12 10:13:09 EDT 2017


Hi Marek,


thanks a lot, that is exactly what I was looking for.


Regards

Mariusz

________________________________
From: Marek Posolda <mposolda at redhat.com>
Sent: 12 April 2017 09:05:05
To: Mariusz Chruscielewski - Info.nl; keycloak-user
Subject: Re: [keycloak-user] Reset password - direct URL

One way is, that when application adapter sends the URL to Keycloak, you
just replace the last "auth" in the path with "forgot-credentials" . So
the URL will look something like:

http://localhost:8080/auth/realms/example/protocol/openid-connect/forgot-credentials?client_id=js-console&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fjs-console%2F&state=20490382-8a96-424f-8d9d-001c6577ea75&nonce=26f35054-ae51-462a-89da-d3bbff7f6585&response_mode=fragment&response_type=code&scope=openid

For keycloak.js adapter, we have method "keycloak.createLoginURL", which
can be used as helper to this. For other adapters, we don't have any
straightforward way without constructing the URL manually AFAIK...

Marek

On 11/04/17 15:38, Mariusz Chruscielewski - Info.nl wrote:
> Hi.
>
> Is there a way to generate reset password URL without opening login page? We would like to have direct URL on our website (or app) to reset password form:
>
> http://domain/auth/realms/vi/login-actions/reset-credentials?code=5y-6gU42Vr-zp2b1mk3v-blNvrL-psc6EQcqT1dXsaw.d3370065-3965-4f81-abb8-c87d377b900e
>
> This URL is generated in UrlBean class, but I also can't get it anyway to try expose easy REST endpoint.
>
> Do you know if there is an easy way?
>
> Thanks in advance.
>
> Kind Regards,
>
> Mariusz Chruścielewski
>
> software engineer
>
> mariusz at info.nl<mailto:mariusz at info.nl>  |  LinkedIn<https://www.linkedin.com/in/mariusz-chruscielewski>  |  +31 (0)20 530 9113<tel:+31205309113%20>
>
> info.nl <http://www.info.nl>
>
> Sint Antoniesbreestraat 16  |  1011 HB Amsterdam  |  +31 (0)20 530 9100<tel:+31205309100>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list