Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Induwara04 authored Dec 15, 2024
2 parents 01c8215 + 9c5eb77 commit 86097d9
Show file tree
Hide file tree
Showing 19 changed files with 758 additions and 8 deletions.
21 changes: 19 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,28 @@
"port": 3000,
"pathToContent": "./src/",
"mode": "development",
"controlPlane": {
"url": "https://127.0.0.1:9443/api/am/devportal/v3",
"disableCertValidation": true,
"pathToCertificate": "../api-developer-portal/conf/security/client-truststore.pem"
},
"db": {
"username": "postgres",
"password": "postgres",
"database": "devportal",
"host": "localhost",
"dialect": "postgres"
}
}
},
"providerURL": {
"AWS": "https://aws.amazon.com"
},
"identityProvider": {},
"roleClaim": "roles",
"orgIDClaim": "organizationID",
"groupsClaim": "groups",
"adminRole": "admin",
"subscriberRole": "Internal/subscriber",
"superAdminRole": "superAdmin",
"authenticatedPages": [],
"authorizedPages": []
}
14 changes: 14 additions & 0 deletions mock/AccommodationAPI/apiMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
"api-icon": "https://devportal-content.s3.amazonaws.com/ACBOrganization/resources/images/hotel-availability.jpeg"
}
},
"subscriptionPolicies": [
{
"policyName": "Gold"
},
{
"policyName": "Silver"
},
{
"policyName": "Bronze"
},
{
"policyName": "Unlimited"
}
],
"serverUrl": {
"sandboxUrl": "https://accommodation.api.sandbox.abc.com",
"productionUrl": "https://accommodation.api.abc.com"
Expand Down
177 changes: 177 additions & 0 deletions mock/Applications/DefaultApplication/AllKeyManagers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
{
"count": 2,
"list": [
{
"id": "aa899ef9-df1a-44c6-940c-dfe1bc2a8c5a",
"name": "Resident Key Manager",
"type": "default",
"displayName": null,
"description": "This is Resident Key Manager",
"enabled": true,
"availableGrantTypes": [
"refresh_token",
"urn:ietf:params:oauth:grant-type:saml2-bearer",
"password",
"client_credentials",
"iwa:ntlm",
"urn:ietf:params:oauth:grant-type:device_code",
"authorization_code",
"urn:ietf:params:oauth:grant-type:token-exchange",
"urn:ietf:params:oauth:grant-type:jwt-bearer"
],
"tokenEndpoint": "https://localhost:9443/oauth2/token",
"revokeEndpoint": "https://localhost:9443/oauth2/revoke",
"userInfoEndpoint": null,
"enableTokenGeneration": true,
"enableTokenEncryption": false,
"enableTokenHashing": false,
"enableOAuthAppCreation": true,
"enableMapOAuthConsumerApps": false,
"applicationConfiguration": [
{
"name": "application_access_token_expiry_time",
"label": "Application Access Token Expiry Time ",
"type": "input",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Type Application Access Token Expiry Time in seconds ",
"values": [],
"default": "N/A"
},
{
"name": "user_access_token_expiry_time",
"label": "User Access Token Expiry Time ",
"type": "input",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Type User Access Token Expiry Time in seconds ",
"values": [],
"default": "N/A"
},
{
"name": "refresh_token_expiry_time",
"label": "Refresh Token Expiry Time ",
"type": "input",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Type Refresh Token Expiry Time in seconds ",
"values": [],
"default": "N/A"
},
{
"name": "id_token_expiry_time",
"label": "Id Token Expiry Time",
"type": "input",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Type ID Token Expiry Time in seconds ",
"values": [],
"default": "N/A"
},
{
"name": "pkceMandatory",
"label": "Enable PKCE",
"type": "checkbox",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Enable PKCE",
"values": [],
"default": "false"
},
{
"name": "pkceSupportPlain",
"label": "Support PKCE Plain text",
"type": "checkbox",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "S256 is recommended, plain text too can be used.",
"values": [],
"default": "false"
},
{
"name": "bypassClientCredentials",
"label": "Public client",
"type": "checkbox",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Allow authentication without the client secret.",
"values": [],
"default": "false"
}
],
"alias": null,
"additionalProperties": {},
"tokenType": "DIRECT"
},
{
"id": "94d37d2f-7d83-471c-87f7-9421692ddeaa",
"name": "dummy",
"type": "Auth0",
"displayName": "dummy",
"description": "",
"enabled": true,
"availableGrantTypes": [],
"tokenEndpoint": "https://localhost:9443/admin/settings/key-managers/create",
"revokeEndpoint": "https://localhost:9443/admin/settings/key-managers/create",
"userInfoEndpoint": null,
"enableTokenGeneration": true,
"enableTokenEncryption": false,
"enableTokenHashing": false,
"enableOAuthAppCreation": true,
"enableMapOAuthConsumerApps": true,
"applicationConfiguration": [
{
"name": "app_type",
"label": "Application Type",
"type": "select",
"required": false,
"mask": false,
"multiple": false,
"tooltip": "Type of the application to create",
"values": [
"regular_web",
"native",
"spa",
"non_interactive"
],
"default": "regular_web"
},
{
"name": "token_endpoint_auth_method",
"label": "Token Endpoint Authentication Method",
"type": "select",
"required": true,
"mask": true,
"multiple": false,
"tooltip": "How to Authenticate Token Endpoint",
"values": [
"client_secret_basic",
"client_secret_post"
],
"default": "client_secret_basic"
},
{
"name": "audience_of_api",
"label": "Audience of the API",
"type": "text",
"required": true,
"mask": false,
"multiple": false,
"tooltip": "The audience of the API which intended to use this application",
"values": [],
"default": ""
}
],
"alias": null,
"additionalProperties": {},
"tokenType": "DIRECT"
}
]
}
17 changes: 17 additions & 0 deletions mock/Applications/DefaultApplication/DefaultApplication.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"applicationId": "49231188-5d7e-46e1-9651-7e7905d4d836",
"name": "DefaultApplication",
"throttlingPolicy": "Unlimited",
"description": "This is the default application",
"tokenType": "JWT",
"status": "APPROVED",
"groups": [],
"subscriptionCount": 1,
"keys": [],
"attributes": {},
"subscriptionScopes": [],
"owner": "admin",
"hashEnabled": false,
"createdTime": "1731993412405",
"updatedTime": "1731993412405"
}
Loading

0 comments on commit 86097d9

Please sign in to comment.