theopenconversationkit / theopenconversationkit/tock

[Studio OIDC & KeyCloak] Scopes requested at login stage are hardcoded

Open
#2,091 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
612
Forks
156
Avg merge
5d 10h
Merged PRs (30d)
9

Description

When OIDC (OAuth2Provider or KeycloakOAuth2Provider) is used to authenticate users, scope lists asked during authentication are not defined, so, it seems that one used per default is :

  • openid
  • profile
  • email

Scopes are useful to get user information and map them to Tock roles.

It could be cool to have a property, for example, for keycloak tock keycloak scopes with default values (openid profile email) that can let the Ops define needs scopes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the OAuth2Provider and KeycloakOAuth2Provider authentication entry points and inspect how the default openid, profile, and email scopes are selected. Done means Ops can configure the requested scopes, while those three values remain the defaults when no property is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.