# Give access token to user coming from other website

**URL:** <https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822>\
**Category:** Securing applications\
**Created:** [September 11, 2020, 8:32am UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822 "2020-09-11T08:32:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daloulou](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/daloulou/32/411_2.png) [@daloulou](https://forum.keycloak.org/u/daloulou)\
**Post date:** [September 11, 2020, 8:32am UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822/1 "2020-09-11T08:32:03Z")

</div>

Hi,

Here is my use case. We have some partner website that could be redirected in our application and we want them to access resource but without having to create another account … ? What is the best way to do that ?

Regards,

Dan

---

<div class="post-metadata">

**Author:** ![M3lkior](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/m3lkior/32/388_2.png) [@M3lkior](https://forum.keycloak.org/u/M3lkior)\
**Post date:** [September 11, 2020, 9:50am UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822/2 "2020-09-11T09:50:17Z")

</div>

hi @daloulou,

Do you try Dynamic client registration ? [https://www.keycloak.org/docs/latest/securing\_apps/#openid-connect-dynamic-client-registration](https://www.keycloak.org/docs/latest/securing_apps/#openid-connect-dynamic-client-registration)

It allow your partners apps to register into keycloak and automagically get client\_id and client\_secret to consume keycloak services

---

<div class="post-metadata">

**Author:** ![daloulou](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/daloulou/32/411_2.png) [@daloulou](https://forum.keycloak.org/u/daloulou)\
**Post date:** [September 11, 2020, 10:03am UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822/3 "2020-09-11T10:03:42Z")

</div>

hi @M3lkior,

I’m sorry i’m not really understanding how it will help me solve my use case ?  
Maybe i was not clear, but partner user came from website 1 could be redirected on website2 and i want them to have access to website’s ressource as if there was website2 user’s without creating account.  
Regards,

Dan

---

<div class="post-metadata">

**Author:** ![M3lkior](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/m3lkior/32/388_2.png) [@M3lkior](https://forum.keycloak.org/u/M3lkior)\
**Post date:** [September 11, 2020, 1:36pm UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822/4 "2020-09-11T13:36:00Z")

</div>

Hum i’m not sure to understand your needs … you want to activate SSO between site 1 and site 2 ?  
Site 1 is linked to Keycloak ?  
Site 2 is linked to Keycloak ?  
User on site 1 is managed by Keycloak ?

---

<div class="post-metadata">

**Author:** ![daloulou](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/daloulou/32/411_2.png) [@daloulou](https://forum.keycloak.org/u/daloulou)\
**Post date:** [September 11, 2020, 1:38pm UTC](https://forum.keycloak.org/t/give-access-token-to-user-coming-from-other-website/4822/5 "2020-09-11T13:38:09Z")

</div>

Only site 2 is linked to Keycloak and User on site 1 are managed by another company.
