File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 15
15
* You should have received a copy of the GNU Affero General Public License
16
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
* */
18
- import crypto from "crypto" ;
19
18
import "dotenv/config" ;
20
19
import http from "http" ;
21
20
@@ -54,9 +53,8 @@ async function DownloadPublicKey()
54
53
} ) ;
55
54
56
55
const string = response . body . toString ( "utf-8" ) ;
57
- const parsed = JSON . parse ( string ) ;
58
56
59
- return parsed . keys [ 0 ] ;
57
+ return JSON . parse ( string ) ;
60
58
}
61
59
62
60
async function BootstrapServer ( )
@@ -66,11 +64,8 @@ async function BootstrapServer()
66
64
requestHandlerChain . AddBodyParser ( ) ;
67
65
68
66
const jwtVerifier = new HTTP . JWTVerifier (
69
- crypto . createPublicKey ( {
70
- key : await DownloadPublicKey ( ) ,
71
- format : 'jwk'
72
- } ) ,
73
- "http://" + CONFIG_OIDP_ENDPOINT , //TODO WHY HTTP AND NOT HTTPS?
67
+ await DownloadPublicKey ( ) ,
68
+ "https://" + CONFIG_OIDP_ENDPOINT ,
74
69
true
75
70
) ;
76
71
const streamingService = GlobalInjector . Resolve ( StreamingService ) ;
You can’t perform that action at this time.
0 commit comments