File tree Expand file tree Collapse file tree 3 files changed +153
-140
lines changed Expand file tree Collapse file tree 3 files changed +153
-140
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const joi = require('joi')
10
10
const scheme = joi . object ( {
11
11
client : joi . object ( {
12
12
realmUrl : joi . string ( ) . uri ( ) . required ( ) ,
13
- clientId : joi . string ( ) . required ( )
13
+ clientId : joi . string ( ) . min ( 1 ) . required ( ) ,
14
+ secret : joi . string ( ) . min ( 1 ) . required ( )
14
15
} ) . unknown ( true ) . required ( ) ,
15
16
cache : joi . alternatives ( ) . try ( joi . object ( {
16
17
segment : joi . string ( ) . default ( 'keycloakJwt' )
Original file line number Diff line number Diff line change 1
1
const token = 'abc.def.ghi'
2
2
const realmUrl = 'https://localhost:8080/auth/realms/testme'
3
3
const clientId = 'foobar'
4
+ const secret = '1234-bar-4321-foo'
4
5
5
6
/**
6
7
* @type Object
@@ -11,7 +12,7 @@ const clientId = 'foobar'
11
12
const config = {
12
13
realmUrl,
13
14
clientId,
14
- secret : 'barfoo'
15
+ secret
15
16
}
16
17
17
18
const content = {
@@ -126,6 +127,7 @@ module.exports = {
126
127
token,
127
128
realmUrl,
128
129
clientId,
130
+ secret,
129
131
config,
130
132
content,
131
133
jwt,
You can’t perform that action at this time.
0 commit comments