Skip to content

Commit 9ff7db5

Browse files
committed
authorization variants by apim env
1 parent e1ac3d4 commit 9ff7db5

11 files changed

Lines changed: 58 additions & 5 deletions

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ publish-oas:
4545
$(MAKE) copy-examples
4646
npm run publish-oas
4747

48+
set-authorization: guard-APIM_ENV
49+
@ AUTHORIZATION=authorization-$$APIM_ENV.yml \
50+
envsubst '$${AUTHORIZATION}' \
51+
< specification/api/components/parameters/authorization/authorization-template.yml > specification/api/components/parameters/authorization/authorization.yml
52+
4853
set-target: guard-APIM_ENV
4954
@ TARGET=target-$$APIM_ENV.yml \
5055
envsubst '$${TARGET}' \
@@ -64,6 +69,7 @@ set-security: guard-APIM_ENV
6469
< specification/api/components/security-schemes/security-schemes-template.yml > specification/api/components/security-schemes/security-schemes.yml
6570

6671
construct-spec: guard-APIM_ENV
72+
$(MAKE) set-authorization APIM_ENV=$$APIM_ENV
6773
$(MAKE) set-target APIM_ENV=$$APIM_ENV
6874
$(MAKE) set-access APIM_ENV=$$APIM_ENV
6975
$(MAKE) set-security APIM_ENV=$$APIM_ENV

sdk/_config.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 0.2.0-20251120.121539+0c18993
1+
version: 1.0.1-20251125.114311+e1ac3d4
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Authorization
2+
in: header
3+
description: |-
4+
An OAuth 2.0 bearer token. Required in integration and production environments.
5+
required: true
6+
schema:
7+
type: string
8+
pattern: ^Bearer [[:ascii:]]+$
9+
example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM

specification/api/components/parameters/authorization.yml renamed to specification/api/components/parameters/authorization/authorization-internal-dev-pr.yml

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Authorization
2+
in: header
3+
description: |-
4+
An OAuth 2.0 bearer token. Required in integration and production environments.
5+
required: false
6+
schema:
7+
type: string
8+
pattern: ^Bearer [[:ascii:]]+$
9+
example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Authorization
2+
in: header
3+
description: |-
4+
An OAuth 2.0 bearer token. Required in integration and production environments.
5+
required: true
6+
schema:
7+
type: string
8+
pattern: ^Bearer [[:ascii:]]+$
9+
example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Authorization
2+
in: header
3+
description: |-
4+
An OAuth 2.0 bearer token. Required in integration and production environments.
5+
required: true
6+
schema:
7+
type: string
8+
pattern: ^Bearer [[:ascii:]]+$
9+
example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Authorization
2+
in: header
3+
description: |-
4+
An OAuth 2.0 bearer token. Required in integration and production environments.
5+
required: false
6+
schema:
7+
type: string
8+
pattern: ^Bearer [[:ascii:]]+$
9+
example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: $AUTHORIZATION
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: authorization-sandbox.yml

0 commit comments

Comments
 (0)