Skip to content

Commit

Permalink
feature/added outboundAdapterConsenterInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Jul 31, 2024
1 parent 3050998 commit 5dd05a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion obp-api/src/main/scala/code/api/util/ApiSession.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ case class CallContext(
username = username,
linkedCustomers = likedCustomersBasic,
userAuthContext = basicUserAuthContexts,
if (authViews.isEmpty) None else Some(authViews)))
if (authViews.isEmpty) None else Some(authViews))),
outboundAdapterConsenterInfo =
if (this.consenter.isDefined){
Some(OutboundAdapterAuthInfo(
username = this.consenter.toOption.map(_.name)))//TODO, here we may added more field to the consenter, at the moment only username is useful
}else{
None
}
)
}}.openOr(OutboundAdapterCallContext( //For anonymousAccess endpoints, there are no user info
this.correlationId,
Expand Down

0 comments on commit 5dd05a6

Please sign in to comment.