Skip to content

Commit 15eba29

Browse files
authored
Merge pull request #2728 from simonredfern/develop
GetConnectorNames now public
2 parents dda6b07 + 0dc6568 commit 15eba29

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,9 +2409,7 @@ trait APIMethods600 {
24092409
|A connector is available for method routing if it matches the `connector` prop setting,
24102410
|or if `connector=star` and the connector is listed in `starConnector_supported_types`.
24112411
|
2412-
|${userAuthenticationMessage(true)}
2413-
|
2414-
|CanGetConnectorNames entitlement is required.
2412+
|Authentication is Optional.
24152413
|
24162414
""".stripMargin,
24172415
EmptyBody,
@@ -2422,20 +2420,17 @@ trait APIMethods600 {
24222420
ConnectorInfoJsonV600("stored_procedure_vDec2019", false)
24232421
)),
24242422
List(
2425-
$AuthenticatedUserIsRequired,
2426-
UserHasMissingRoles,
24272423
UnknownError
24282424
),
24292425
List(apiTagConnector, apiTagSystem, apiTagApi),
2430-
Some(List(canGetConnectorNames))
2426+
None
24312427
)
24322428

24332429
lazy val getConnectors: OBPEndpoint = {
24342430
case "system" :: "connectors" :: Nil JsonGet _ =>
24352431
cc => implicit val ec = EndpointContext(Some(cc))
24362432
for {
2437-
(Full(u), callContext) <- authenticatedAccess(cc)
2438-
_ <- NewStyle.function.hasEntitlement("", u.userId, canGetConnectorNames, callContext)
2433+
(_, callContext) <- anonymousAccess(cc)
24392434
} yield {
24402435
// Get the connector names from the Connector object's nameToConnector map
24412436
// Also include "star" which is handled separately in getConnectorInstance

0 commit comments

Comments
 (0)