From bdcb6eef5840046ef284b8d085d36a61e0e6c2cf Mon Sep 17 00:00:00 2001 From: Steve Hu Date: Sun, 8 Nov 2020 17:03:03 -0500 Subject: [PATCH] fixes #299 add password to the jwt.yml as the secret.yml is removed --- authorize/src/test/resources/config/jwt.yml | 1 + code/src/test/resources/config/jwt.yml | 1 + db/mariadb/config/oauth2-code/jwt.yml | 1 + db/mariadb/config/oauth2-token/jwt.yml | 1 + db/mysql/config/oauth2-code/jwt.yml | 1 + db/mysql/config/oauth2-token/jwt.yml | 1 + db/oracle/config/oauth2-code/jwt.yml | 1 + db/oracle/config/oauth2-token/jwt.yml | 1 + db/postgres/config/oauth2-code/jwt.yml | 1 + db/postgres/config/oauth2-token/jwt.yml | 1 + db/sqlserver/config/oauth2-code/jwt.yml | 1 + db/sqlserver/config/oauth2-token/jwt.yml | 1 + token/src/test/resources/config/jwt.yml | 1 + 13 files changed, 13 insertions(+) diff --git a/authorize/src/test/resources/config/jwt.yml b/authorize/src/test/resources/config/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/authorize/src/test/resources/config/jwt.yml +++ b/authorize/src/test/resources/config/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/code/src/test/resources/config/jwt.yml b/code/src/test/resources/config/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/code/src/test/resources/config/jwt.yml +++ b/code/src/test/resources/config/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/mariadb/config/oauth2-code/jwt.yml b/db/mariadb/config/oauth2-code/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/mariadb/config/oauth2-code/jwt.yml +++ b/db/mariadb/config/oauth2-code/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/mariadb/config/oauth2-token/jwt.yml b/db/mariadb/config/oauth2-token/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/mariadb/config/oauth2-token/jwt.yml +++ b/db/mariadb/config/oauth2-token/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/mysql/config/oauth2-code/jwt.yml b/db/mysql/config/oauth2-code/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/mysql/config/oauth2-code/jwt.yml +++ b/db/mysql/config/oauth2-code/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/mysql/config/oauth2-token/jwt.yml b/db/mysql/config/oauth2-token/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/mysql/config/oauth2-token/jwt.yml +++ b/db/mysql/config/oauth2-token/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/oracle/config/oauth2-code/jwt.yml b/db/oracle/config/oauth2-code/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/oracle/config/oauth2-code/jwt.yml +++ b/db/oracle/config/oauth2-code/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/oracle/config/oauth2-token/jwt.yml b/db/oracle/config/oauth2-token/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/oracle/config/oauth2-token/jwt.yml +++ b/db/oracle/config/oauth2-token/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/postgres/config/oauth2-code/jwt.yml b/db/postgres/config/oauth2-code/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/postgres/config/oauth2-code/jwt.yml +++ b/db/postgres/config/oauth2-code/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/postgres/config/oauth2-token/jwt.yml b/db/postgres/config/oauth2-token/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/postgres/config/oauth2-token/jwt.yml +++ b/db/postgres/config/oauth2-token/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/sqlserver/config/oauth2-code/jwt.yml b/db/sqlserver/config/oauth2-code/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/sqlserver/config/oauth2-code/jwt.yml +++ b/db/sqlserver/config/oauth2-code/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/db/sqlserver/config/oauth2-token/jwt.yml b/db/sqlserver/config/oauth2-token/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/db/sqlserver/config/oauth2-token/jwt.yml +++ b/db/sqlserver/config/oauth2-token/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens diff --git a/token/src/test/resources/config/jwt.yml b/token/src/test/resources/config/jwt.yml index ecb3c6c0..470edf9e 100644 --- a/token/src/test/resources/config/jwt.yml +++ b/token/src/test/resources/config/jwt.yml @@ -6,6 +6,7 @@ key: kid: '100' # kid that used to sign the JWT tokens. It will be shown up in the token header. filename: "primary.jks" # private key that is used to sign JWT tokens. keyName: selfsigned # key name that is used to identify the right key in keystore. + password: password # private key store password and private key password is the same issuer: urn:com:networknt:oauth2:v1 # default issuer of the JWT token audience: urn:com.networknt # default audience of the JWT token expiredInMinutes: 10 # expired in 10 minutes by default for issued JWT tokens