# Creating an oauth flow with 1st party account selection

**URL:** <https://forum.keycloak.org/t/creating-an-oauth-flow-with-1st-party-account-selection/2475>\
**Category:** Getting advice\
**Created:** [May 1, 2020, 3:19pm UTC](https://forum.keycloak.org/t/creating-an-oauth-flow-with-1st-party-account-selection/2475 "2020-05-01T15:19:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hr824](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hr824](https://forum.keycloak.org/u/hr824)\
**Post date:** [May 1, 2020, 3:19pm UTC](https://forum.keycloak.org/t/creating-an-oauth-flow-with-1st-party-account-selection/2475/1 "2020-05-01T15:19:44Z")

</div>

Hello. I’m new to keycloak. I’m hoping someone can point me in the right direction.

In my application, we use keycloak for login. We have a users service that tracks users and an accounts service that tracks what accounts those users have access to.

In a new use case, I want to create a public API. When a user logs in via keycloak to connect with the integration, we need them to select which account(s) to allow the Oauth integration to access.

Somehow, we basically need a way for a user to authenticate using an authorized API token, and forward them to a page that says “select which accounts you want to grant access to” before forwarding them to the appropriate service.

I have been doing some research, but just wanted to get an idea. I have virtually zero JAVA programming experience. I’m most familiar with NodeJS. I should note that I’m fairly experienced in working with Oauth integrations through various APIs like Google, Twitter, Spotify and others.

Thank you!

---

<div class="post-metadata">

**Author:** ![hr824](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hr824](https://forum.keycloak.org/u/hr824)\
**Post date:** [May 5, 2020, 4:17pm UTC](https://forum.keycloak.org/t/creating-an-oauth-flow-with-1st-party-account-selection/2475/2 "2020-05-05T16:17:07Z")

</div>

Hoping to bump this up a bit to see if anyone has some ideas? Thanks!
