From 705db4a3165a7bb272e2c29640c0403fa82d1af3 Mon Sep 17 00:00:00 2001 From: Jin Bal Date: Tue, 23 May 2023 12:10:48 +0100 Subject: [PATCH] GG-7031 modified security scopes to match the old raml file --- public/api/conf/1.0/application.yaml | 16 ++-------------- public/api/conf/1.1/application.yaml | 16 ++-------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/public/api/conf/1.0/application.yaml b/public/api/conf/1.0/application.yaml index 8b727b5..38c39fa 100644 --- a/public/api/conf/1.0/application.yaml +++ b/public/api/conf/1.0/application.yaml @@ -18,13 +18,7 @@ servers: variables: {} security: - userRestricted: - - "profile" - - "address" - - "email" - - "openid:hmrc-enrolments" - - "openid:government-gateway" - - "openid:mdtp" - - "openid:gov-uk-identifiers" + - "openid" paths: /userinfo/: get: @@ -330,13 +324,7 @@ components: tokenUrl: https://api.service.hmrc.gov.uk/oauth/token refreshUrl: https://api.service.hmrc.gov.uk/oauth/refresh scopes: - "profile": given_name, middle_name, family_name - "address": address - "email": email - "openid:hmrc-enrolments": hmrc_enrolments - "openid:government-gateway": government_gateway - "openid:mdtp": mdtp - "openid:gov-uk-identifiers": uk_gov_nino + "openid": openid tags: - name: userinfo description: '' diff --git a/public/api/conf/1.1/application.yaml b/public/api/conf/1.1/application.yaml index 8a6920a..0205b50 100644 --- a/public/api/conf/1.1/application.yaml +++ b/public/api/conf/1.1/application.yaml @@ -18,13 +18,7 @@ servers: variables: {} security: - userRestricted: - - "profile" - - "address" - - "email" - - "openid:hmrc-enrolments" - - "openid:government-gateway" - - "openid:mdtp" - - "openid:gov-uk-identifiers" + - "openid" paths: /userinfo/: get: @@ -339,13 +333,7 @@ components: tokenUrl: https://api.service.hmrc.gov.uk/oauth/token refreshUrl: https://api.service.hmrc.gov.uk/oauth/refresh scopes: - "profile": given_name, middle_name, family_name - "address": address - "email": email - "openid:hmrc-enrolments": hmrc_enrolments - "openid:government-gateway": government_gateway - "openid:mdtp": mdtp - "openid:gov-uk-identifiers": uk_gov_nino + "openid": openid tags: - name: userinfo description: ''