Created
September 14, 2023 02:59
-
-
Save terrancesnyder/bacae10af3c29c639d733ceff4a15146 to your computer and use it in GitHub Desktop.
Example of protecting with Ory Oathkeeper Access to API (GET)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "Protect a People API with Consent Check", | |
"match": { | |
"url": "http://api.woven-city.io/api/people/contacts", | |
"methods": [ "GET" ] | |
}, | |
"upstream": { | |
"url": "https://my_container_or_dns:8080/api/people/contacts" | |
}, | |
"authenticators": [{ | |
"handler": "oauth2_introspection", | |
"config": { | |
"required_scope": [ | |
"https://www.googleapis.com/auth/userinfo.profile", | |
"https://www.googleapis.com/auth/contacts.readonly" | |
] | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment