Skip to content

Commit

Permalink
appauth: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Jun 7, 2021
1 parent 6e99b39 commit f9e845f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/storage-references/applicationauth.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[grpc]
address = "0.0.0.0:15000"

[grpc.services.applicationauth]
driver = "json"

[grpc.services.authprovider]
auth_manager = "appauth"

[grpc.services.authprovider.auth_managers.appauth]
gateway_addr = "localhost:19000"
2 changes: 2 additions & 0 deletions examples/storage-references/gateway.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ home_provider = "/home"

[grpc.services.authprovider]
[grpc.services.authregistry]
[grpc.services.applicationauth]

[grpc.services.authregistry.drivers.static.rules]
basic = "localhost:19000"
publicshares = "localhost:16000"
appauth = "localhost:15000"

[grpc.services.userprovider]
[grpc.services.usershareprovider]
Expand Down

0 comments on commit f9e845f

Please sign in to comment.