Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kshychko committed Jan 17, 2024
1 parent af1481e commit f1754cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def swagger_route_handler(arns, openapi_):
'github-idp-bucket'
)


#for GitHubShim configure https://github.com/TimothyJones/github-cognito-openid-wrapper
userpool_client = aws.cognito.UserPoolClient("userpoolClient",
user_pool_id=pool.id,
callback_urls=[deployment.invoke_url.apply(lambda url: url+'?')],
Expand Down
10 changes: 9 additions & 1 deletion mock/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# How to invoke API using Postman collection
# Mock API implementation

This Mock API implementation consists of basic API, that reads/writes data from DynamoDB.
For auth Cognito USerPool is used with GitHubShim as an identity provider. It allows to use GitHub to obtain JWT token to auth with API. Configuration and deployment of https://github.com/TimothyJones/github-cognito-openid-wrapper is required for this option along with GitHub Oauth App config.

Important: Currently not in use and has been undeployed.


## How to invoke API using Postman collection

1. Download and install Postman
2. Import the collection from this repo: mock/FastAPI.postman_collection.json
Expand Down

0 comments on commit f1754cd

Please sign in to comment.