@@ -84,6 +84,8 @@ The following config option are provided by the OpenHIM. All of these options ha
84
84
" openid" : {
85
85
// Openid connect provider realm url link
86
86
" url" : " http://localhost:9088/realms/platform-realm" ,
87
+ // (Optional) Openid connect provider issuer url incase this is different from the api url e.g. if you are using a proxy
88
+ " issuerUrl" : " http://localhost:9088/realms/platform-realm" ,
87
89
// Callback URL used by openid connect provider (should be the same callback URL specified in realm)
88
90
" callbackUrl" : " http://localhost:9000" ,
89
91
// CLient ID specified in the realm
@@ -135,15 +137,18 @@ The following config option are provided by the OpenHIM. All of these options ha
135
137
" enableJWTAuthentication" : false ,
136
138
// JWT specific config
137
139
" jwt" : {
138
- // The secret or public key used by the encryption algorithm in signing the token
140
+ // The URL to the JSON Web Key Set (JWKS) endpoint. Either this or the secretOrPublicKey must be provided.
141
+ " jwksUri" : " " ,
142
+ // The secret or public key used by the encryption algorithm in signing the token. The value is either
143
+ // The secret as a string or a path to a public key. Either this or the jwksUri must be provided.
139
144
" secretOrPublicKey" : " " ,
140
- // The algorithm used to sign the token. i.e. HS256, RS256, ES256, PS256, etc
145
+ // (required) The algorithm used to sign the token. i.e. HS256, RS256, ES256, PS256, etc
141
146
" algorithms" : " " ,
142
- // The JWT Audience (aud) is a registered claim field in the payload.
143
- // It identifies the intended recipients of the JWT. These values are usually case sensitive strings.
147
+ // (optional) The JWT Audience (aud) is a registered claim field in the payload.
148
+ // It identifies the intended recipients of the JWT. These values are usually case sensitive strings.
144
149
" audience" : " " ,
145
- // The JWT Issuer (iss) is a registered claim field in the payload.
146
- // It identifiers the principal JWT issuer. This value is a case sensitive string.
150
+ // (required) The JWT Issuer (iss) is a registered claim field in the payload.
151
+ // It identifiers the principal JWT issuer. This value is a case sensitive string.
147
152
" issuer" : " "
148
153
}
149
154
},
0 commit comments