Add client auth (#294)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
client:
|
||||
private-key: "classpath:keys/priv-wrong.p8.key"
|
||||
@@ -1,6 +1,7 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv-wrong.p8.key"
|
||||
external-public-key: "classpath:keys/pub-wrong.key"
|
||||
server:
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv-wrong.p8.key"
|
||||
external-public-key: "classpath:keys/pub-wrong.key"
|
||||
@@ -1,6 +1,7 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv.p8.key"
|
||||
external-public-key: "classpath:keys/pub-wrong.key"
|
||||
server:
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv.p8.key"
|
||||
external-public-key: "classpath:keys/pub-wrong.key"
|
||||
3
src/test/resources/configs/auth-without-any-config.yaml
Normal file
3
src/test/resources/configs/auth-without-any-config.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
@@ -1,3 +1,5 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
publicKeyOwner: drpc
|
||||
server:
|
||||
nothing: true
|
||||
@@ -1,5 +1,6 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
keys:
|
||||
external-public-key: /keys/pub.key
|
||||
server:
|
||||
keys:
|
||||
external-public-key: /keys/pub.key
|
||||
@@ -1,5 +1,6 @@
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
keys:
|
||||
provider-private-key: /keys/priv.p8.key
|
||||
server:
|
||||
keys:
|
||||
provider-private-key: /keys/priv.p8.key
|
||||
@@ -14,9 +14,10 @@ tls:
|
||||
auth:
|
||||
enabled: true
|
||||
publicKeyOwner: drpc
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv.p8.key"
|
||||
external-public-key: "classpath:keys/public.pem"
|
||||
server:
|
||||
keys:
|
||||
provider-private-key: "classpath:keys/priv.p8.key"
|
||||
external-public-key: "classpath:keys/public.pem"
|
||||
|
||||
cache:
|
||||
redis:
|
||||
|
||||
@@ -6,4 +6,10 @@ upstreams:
|
||||
tls:
|
||||
ca: /etc/ca.myservice.com.crt
|
||||
certificate: /etc/client1.myservice.com.crt
|
||||
key: /etc/client1.myservice.com.key
|
||||
key: /etc/client1.myservice.com.key
|
||||
- id: remoteTokenAuth
|
||||
connection:
|
||||
grpc:
|
||||
host: "11.12.10.115"
|
||||
token-auth:
|
||||
public-key: /path/to/key.pem
|
||||
Reference in New Issue
Block a user