Skip to content

Commit

Permalink
Merge pull request #112 from hmrc/MTDSA-1516
Browse files Browse the repository at this point in the history
MTDSA-1516 Authentication remove confidence level
  • Loading branch information
jonathanleather authored Apr 16, 2018
2 parents dfdc578 + 2e1b729 commit 7369ce5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/uk/gov/hmrc/vatapi/services/AuthorisationService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ trait AuthorisationService {
ec: ExecutionContext): Future[AuthResult] = {
logger.debug(s"[AuthorisationService] [authoriseAsClient] Check user authorisation for MTD VAT based on VRN ${vrn}.")
aPIAuthorisedFunctions.authorised(
RawJsonPredicate(JsArray.apply(Seq(Json.toJson(Enrolment(vatAuthEnrolments.enrolmentToken).withIdentifier(vatAuthEnrolments.identifier, vrn.vrn)),
Json.parse(s"""{"confidenceLevel": ${ConfidenceLevel.L200}}""")))))
RawJsonPredicate(JsArray.apply(Seq(Json.toJson(Enrolment(vatAuthEnrolments.enrolmentToken).withIdentifier(vatAuthEnrolments.identifier, vrn.vrn))))))
.retrieve(Retrievals.affinityGroup and Retrievals.authorisedEnrolments) {
case Some(AffinityGroup.Organisation) ~ enrolments =>
logger.debug(s"[AuthorisationService] [authoriseAsClient] Authorisation succeeded as fully-authorised organisation " +
Expand Down

0 comments on commit 7369ce5

Please sign in to comment.