@@ -27,19 +27,24 @@ document.getElementById('popupSignout').addEventListener("click", popupSignout,
27
27
Oidc . Log . logger = console ;
28
28
Oidc . Log . level = Oidc . Log . DEBUG ;
29
29
30
+ var url = window . location . origin ;
31
+
30
32
var settings = {
31
- //authority: 'https://demo.identityserver.io/',
32
- authority : 'http://localhost:5000/' ,
33
+ //authority: 'https://demo.identityserver.io',
34
+ authority : 'http://localhost:5000' ,
35
+ //authority: 'http://35.246.79.26/openid-connect-server-webapp',
33
36
client_id : 'js_code' ,
34
- redirect_uri : 'http://localhost:15000/code-identityserver-sample.html' ,
35
- post_logout_redirect_uri : 'http://localhost:15000/code-identityserver-sample.html' ,
37
+ //client_id: 'client0',
38
+ redirect_uri : url + '/code-identityserver-sample.html' ,
39
+ post_logout_redirect_uri : url + '/code-identityserver-sample.html' ,
36
40
response_type : 'code' ,
37
- scope : 'openid profile email api1' ,
41
+ //response_mode: 'fragment',
42
+ scope : 'openid profile' ,
38
43
39
- popup_redirect_uri :'http://localhost:15000 /code-identityserver-sample-popup-signin.html',
40
- popup_post_logout_redirect_uri :'http://localhost:15000 /code-identityserver-sample-popup-signout.html',
44
+ popup_redirect_uri : url + ' /code-identityserver-sample-popup-signin.html',
45
+ popup_post_logout_redirect_uri : url + ' /code-identityserver-sample-popup-signout.html',
41
46
42
- silent_redirect_uri :'http://localhost:15000 /code-identityserver-sample-silent.html',
47
+ silent_redirect_uri : url + ' /code-identityserver-sample-silent.html',
43
48
automaticSilentRenew :true ,
44
49
//silentRequestTimeout:10000,
45
50
@@ -121,7 +126,7 @@ function endSigninMainWindow() {
121
126
}
122
127
123
128
function startSigninMainWindowDiffCallbackPage ( ) {
124
- mgr . signinRedirect ( { state :'some data' , redirect_uri : 'http://localhost:15000 /code-identityserver-sample-callback.html'} ) . then ( function ( ) {
129
+ mgr . signinRedirect ( { state :'some data' , redirect_uri : url + ' /code-identityserver-sample-callback.html'} ) . then ( function ( ) {
125
130
log ( "signinRedirect done" ) ;
126
131
} ) . catch ( function ( err ) {
127
132
log ( err ) ;
0 commit comments