SAP / apibusinesshub-api-recipes

Accelerate integration projects using SAP Cloud Platform API Management with crowdsourced best practices, curated by experts, designed for developers.
Apache License 2.0
59 stars 27 forks source link

Unable to import SAP Cloud Foundry SAML 2.0 Auth Flow policy #7

Closed socenmarc closed 4 years ago

socenmarc commented 4 years ago

Hi @aadinigam,

I'm importing the SAP Cloud Foundry SAML 2.0 Auth Flow policy via zip file and I get the following error:

Invalid ID; ID can only contain alphanumeric characters, underscore(_) and hyphen(-).

Invalid ID; ID can only contain alphanumeric characters, underscore(_) and hyphen(-).[Request ID: 908984e1-2fbe-405d-be28-ee4e89986d20]

Capture

I'm in API Portal in a non-trial and successfully on boarded account (supposedly).

Additional info: I'm importing the policy because I can't copy it from Discover. When doing so, I get an error because it already exists in my policies although it does not exist: (I'm going to create an oss ticket for this issue.) Capture2 Capture3 Capture4

Thanks in advance, Marc

kulkarnir commented 4 years ago

Hi Marc,

Thanks for sharing, we will look into this and update.

Please try workaround, which will help you to import the policy template

1) Unzip and open the file SAPCloudFoundrySAML2OAuthFlow.xml

image

2) Please update the name tag as shown in screenshot Name : SAP Cloud Foundry SAML2OAuth Flow work around update : SAP_Cloud_Foundry_SAML2OAuth_Flow

image

3) Now zip and try to import, this should work.. Please take care of folder structure when you zip

Regards, Raghavendra Kulkarni

socenmarc commented 4 years ago

Hi Raghavendra,

thanks for the workaround. It works fine.

Regards, Marc