Skip to content

Commit

Permalink
add example for configuring WoT "oauth2" security provider
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Jul 22, 2022
1 parent a20ebbf commit 2b6c03d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions things/service/src/main/resources/things.conf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ ditto {
base-prefix = "http://localhost:8080"
base-prefix = ${?THINGS_WOT_TO_THING_DESCRIPTION_BASE_PREFIX}

# OAuth 2.0 example using Google:
# json-template {
# "securityDefinitions": {
# "oauth2_google_sc": {
# "scheme": "oauth2",
# "authorization": "https://accounts.google.com/o/oauth2/v2/auth",
# "token": "https://oauth2.googleapis.com/token",
# "scopes": [
# "openid"
# ],
# "flow": "code"
# }
# },
# "security": "oauth2_google_sc"
# "support": "https://www.eclipse.org/ditto/"
# }

json-template {
"securityDefinitions": {
"basic_sc": {
Expand Down

0 comments on commit 2b6c03d

Please sign in to comment.