I found out link to this repository from the official Ubisecure SPA documentation https://www.ubisecure.com/developers/single-page-applications/
I went through the examples briefly and noticed that on spa.html file, line 87 the invokeTokenRequest function is using the client_id and client_secret.
|
function invokeTokenRequest(configuration, client_id, client_secret, code) { |
This basically means that any user will have access to client_secret key. Isn't this a security risk?
Of course it could be that the provider is configured in a way that this doesn't cause any actual risks.
I found out link to this repository from the official Ubisecure SPA documentation https://www.ubisecure.com/developers/single-page-applications/
I went through the examples briefly and noticed that on
spa.htmlfile, line 87 theinvokeTokenRequestfunction is using theclient_idandclient_secret.SimpleSPA/docs/spa.html
Line 87 in 2decdb8
This basically means that any user will have access to
client_secretkey. Isn't this a security risk?Of course it could be that the provider is configured in a way that this doesn't cause any actual risks.