File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
frontend-react/src/components Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ export default {
31
31
} ) ;
32
32
}
33
33
34
- const ssoScript = generateDisqusSSO ( user , env . DISQUS_SECRET_KEY , env . DISQUS_PUBLIC_KEY ) ;
34
+ const ssoPayload = generateDisqusSSO ( user , env . DISQUS_SECRET_KEY , env . DISQUS_PUBLIC_KEY ) ;
35
35
36
36
return new Response ( JSON . stringify ( {
37
- sso : ssoScript
37
+ sso : ssoPayload
38
38
} ) , {
39
39
headers : {
40
40
'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const DisqusSSO = () => {
31
31
} )
32
32
. then ( response => response . data . sso )
33
33
. then ( sso => {
34
- setLoginPayload ( `Payload : ${ sso . auth } ` ) ;
34
+ setLoginPayload ( `remoteAuthS3 payload : ${ sso . auth } ` ) ;
35
35
setLoginPublicKey ( `Public Key: ${ sso . pubKey } ` ) ;
36
36
setLoginTestField ( `Test Field: ${ sso . test } ` ) ;
37
37
setLoggedInStatus ( true ) ;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ <h1>Disqus SSO Demo - Vanilla JavaScript</h1>
126
126
data : JSON . stringify ( { user : userData } ) ,
127
127
success : function ( response ) {
128
128
$ ( '#disqus_thread p' ) . remove ( ) ;
129
- $ ( "<p></p>" ) . text ( "payload: " ) . appendTo ( "#disqus_thread" ) ;
129
+ $ ( "<p></p>" ) . text ( "remote_auth_s3 payload: " ) . appendTo ( "#disqus_thread" ) ;
130
130
$ ( "<p></p>" ) . text ( response . sso . auth ) . appendTo ( "#disqus_thread" ) ;
131
131
$ ( "<p></p>" ) . text ( "public key: " ) . appendTo ( "#disqus_thread" ) ;
132
132
$ ( "<p></p>" ) . text ( response . sso . pubKey ) . appendTo ( "#disqus_thread" ) ;
You can’t perform that action at this time.
0 commit comments