Skip to content

Commit d0a1624

Browse files
Merge pull request #14 from distinction-dev/feature/azure-verifier
chore: rebase main with feature
2 parents 88514b8 + 1a37837 commit d0a1624

3 files changed

Lines changed: 38 additions & 36 deletions

File tree

.github/workflows/ci.pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
- run: openssl req -new -x509 -key private.pem -out public.cer -subj '/C=IN'
2323
- run: yarn build
2424
- run: yarn test
25+
- run: yarn test:unit
2526
- run: rm -rf private.pem public.cer

docs/modules.md

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
### Interfaces
1717

1818
- [Claims](interfaces/Claims.md)
19+
- [AzureClaims](interfaces/AzureClaims.md)
1920
- [PublicKey](interfaces/PublicKey.md)
2021

2122
### Type Aliases
@@ -27,7 +28,7 @@
2728

2829
### Variables
2930

30-
- [DENY\_ALL\_RESPONSE](modules.md#deny_all_response)
31+
- [DENY_ALL_RESPONSE](modules.md#deny_all_response)
3132

3233
### Functions
3334

@@ -41,20 +42,20 @@
4142

4243
#### Type declaration
4344

44-
| Name | Type |
45-
| :------ | :------ |
46-
| `context?` | `Record`<`string`, `string` \| `number` \| `boolean`\> |
47-
| `policyDocument` | { `Statement`: [`AwsStatement`](modules.md#awsstatement)[] ; `Version`: ``"2012-10-17"`` } |
48-
| `policyDocument.Statement` | [`AwsStatement`](modules.md#awsstatement)[] |
49-
| `policyDocument.Version` | ``"2012-10-17"`` |
50-
| `principalId` | `string` |
51-
| `usageIdentifierKey?` | `string` |
45+
| Name | Type |
46+
| :------------------------- | :--------------------------------------------------------------------------------------- |
47+
| `context?` | `Record`<`string`, `string` \| `number` \| `boolean`\> |
48+
| `policyDocument` | { `Statement`: [`AwsStatement`](modules.md#awsstatement)[] ; `Version`: `"2012-10-17"` } |
49+
| `policyDocument.Statement` | [`AwsStatement`](modules.md#awsstatement)[] |
50+
| `policyDocument.Version` | `"2012-10-17"` |
51+
| `principalId` | `string` |
52+
| `usageIdentifierKey?` | `string` |
5253

5354
#### Defined in
5455

5556
[authorizerResponse.ts:56](https://github.com/distinction-dev/lambda-authorizer-utils/blob/3d085bb/src/authorizerResponse.ts#L56)
5657

57-
___
58+
---
5859

5960
### AwsPolicyCondition
6061

@@ -64,58 +65,58 @@ ___
6465

6566
[authorizerResponse.ts:45](https://github.com/distinction-dev/lambda-authorizer-utils/blob/3d085bb/src/authorizerResponse.ts#L45)
6667

67-
___
68+
---
6869

6970
### AwsRoute
7071

7172
Ƭ **AwsRoute**: `Object`
7273

7374
#### Type declaration
7475

75-
| Name | Type |
76-
| :------ | :------ |
76+
| Name | Type |
77+
| :------------ | :------------------------------------------------------ |
7778
| `conditions?` | [`AwsPolicyCondition`](modules.md#awspolicycondition)[] |
78-
| `resourceArn` | `string` |
79+
| `resourceArn` | `string` |
7980

8081
#### Defined in
8182

8283
[authorizerResponse.ts:46](https://github.com/distinction-dev/lambda-authorizer-utils/blob/3d085bb/src/authorizerResponse.ts#L46)
8384

84-
___
85+
---
8586

8687
### AwsStatement
8788

8889
Ƭ **AwsStatement**: `Object`
8990

9091
#### Type declaration
9192

92-
| Name | Type |
93-
| :------ | :------ |
94-
| `Action` | `string` |
93+
| Name | Type |
94+
| :----------- | :------------------------------------------------------ |
95+
| `Action` | `string` |
9596
| `Condition?` | [`AwsPolicyCondition`](modules.md#awspolicycondition)[] |
96-
| `Effect` | ``"Allow"`` \| ``"Deny"`` |
97-
| `Resource` | `string`[] |
97+
| `Effect` | `"Allow"` \| `"Deny"` |
98+
| `Resource` | `string`[] |
9899

99100
#### Defined in
100101

101102
[authorizerResponse.ts:50](https://github.com/distinction-dev/lambda-authorizer-utils/blob/3d085bb/src/authorizerResponse.ts#L50)
102103

103104
## Variables
104105

105-
### DENY\_ALL\_RESPONSE
106+
### DENY_ALL_RESPONSE
106107

107-
`Const` **DENY\_ALL\_RESPONSE**: `Object`
108+
`Const` **DENY_ALL_RESPONSE**: `Object`
108109

109110
Deny access to the api completely
110111

111112
#### Type declaration
112113

113-
| Name | Type |
114-
| :------ | :------ |
115-
| `policyDocument` | { `Statement`: { `Action`: `string` = "execute-api:Invoke"; `Effect`: `string` = "Deny"; `Resource`: `string`[] }[] ; `Version`: `string` = "2012-10-17" } |
116-
| `policyDocument.Statement` | { `Action`: `string` = "execute-api:Invoke"; `Effect`: `string` = "Deny"; `Resource`: `string`[] }[] |
117-
| `policyDocument.Version` | `string` |
118-
| `principalId` | `string` |
114+
| Name | Type |
115+
| :------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
116+
| `policyDocument` | { `Statement`: { `Action`: `string` = "execute-api:Invoke"; `Effect`: `string` = "Deny"; `Resource`: `string`[] }[] ; `Version`: `string` = "2012-10-17" } |
117+
| `policyDocument.Statement` | { `Action`: `string` = "execute-api:Invoke"; `Effect`: `string` = "Deny"; `Resource`: `string`[] }[] |
118+
| `policyDocument.Version` | `string` |
119+
| `principalId` | `string` |
119120

120121
#### Defined in
121122

@@ -129,14 +130,14 @@ Deny access to the api completely
129130

130131
#### Parameters
131132

132-
| Name | Type |
133-
| :------ | :------ |
134-
| `region` | `string` |
133+
| Name | Type |
134+
| :------------- | :------- |
135+
| `region` | `string` |
135136
| `awsAccountId` | `string` |
136-
| `apiId` | `string` |
137-
| `stage` | `string` |
138-
| `method` | `string` |
139-
| `path` | `string` |
137+
| `apiId` | `string` |
138+
| `stage` | `string` |
139+
| `method` | `string` |
140+
| `path` | `string` |
140141

141142
#### Returns
142143

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prepare": "husky install",
1414
"semantic-release": "semantic-release",
1515
"type-check": "tsc --noEmit",
16-
"test": "yarn lint && yarn type-check && yarn test:unit",
16+
"test": "yarn lint && yarn type-check",
1717
"test:unit": "mocha -r ts-node/register --timeout 999999 ./test/**/*test.ts",
1818
"docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
1919
"package": "serverless package"

0 commit comments

Comments
 (0)