OpenBankProject / OpenBankProject/OBP-API

Add Resource UserAuthContext

Open
#1,127 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement tesobe
Dominant language
Scala
Stars
1.7k
Forks
482
Avg merge
1d 12h
Merged PRs (30d)
15

Description

Add new model UserAuthContext

userId: String
key: String
value : String

Add role CanModifyUserAuthContext
Add POST , GET for this resource.

example usage:

userId = "qieuriopwoir987203984729384ipeiu"
key = "CUSTOMER_NUMBER"
value = "78987432"

userId = "qieuriopwoir987203984729384ipeiu"
key = "TOKEN"
value = "qieuriopwoir987ASYDUFISUYDF678u"

list[AuthContext] will be added to authInfo / callContext for the purpose of identifying the user making the call. This will give us more flexibility when sending requests to the CBS on behalf of the User.

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 existing resource models, CanModify roles, and POST/GET route definitions in the Scala project, then trace how authInfo and callContext are assembled. Compare analogous resources and determine how UserAuthContext entries should be represented there. Done means the model, role, endpoints, and auth context integration are covered consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.