Skip to content

Commit

Permalink
API-7437 - changes after PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anjumabbas5 committed Dec 6, 2023
1 parent 3cab4e7 commit 0af92cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/UserInfoService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LiveUserInfoService @Inject() (
override def fetchUserInfo(version: Version)(implicit hc: HeaderCarrier): Future[UserInfo] = {

val accessTokenHeaderName = "X-Client-Authorization-Token"
val accessTokenHeader = hc.otherHeaders.find(x => x._1 == "X-Client-Authorization-Token")
val accessTokenHeader = hc.otherHeaders.find(x => x._1 == accessTokenHeaderName)

val scopes = accessTokenHeader match {
case Some(accessTokenHeader) => thirdPartyDelegatedAuthorityConnector.fetchScopes(accessTokenHeader._2)
Expand Down

0 comments on commit 0af92cc

Please sign in to comment.