go to post Daniel Goerke · Nov 25 @Tani Frankel, @Scott Roth I have activated the relevant logging and implemented a small function to log the requests. Below, I will share both log outputs.It appears that not all parameters are being passed to the OAuth2.Response class. At the moment, I am unsure what might be causing this issue.IRIS Log: Spoiler **OAuth2-3 2024-11-25 10:01:55.9119078 ns=%SYS routine=%OAuth2.Utils.1 job=2228 sessionid=E5RZL9jf5N[OAuth2.Response:OnPreHttp]CSP Requestdata="Content-Type: , Secure: 1, Method: GET"data("Cookie","CSPWSERVERID")="B22rIedt"data("Header","HTTP_ACCEPT")="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"data("Header","HTTP_ACCEPT_ENCODING")="gzip, deflate, br, zstd"data("Header","HTTP_ACCEPT_LANGUAGE")="de,en-US;q=0.7,en;q=0.3"data("Header","HTTP_CONNECTION")="close"data("Header","HTTP_COOKIE")="CSPWSERVERID=B22rIedt"data("Header","HTTP_HOST")="192.148.150.2"data("Header","HTTP_PRIORITY")="u=0, i"data("Header","HTTP_REFERER")="https://login.microsoftonline.com/"data("Header","HTTP_SEC_FETCH_DEST")="document"data("Header","HTTP_SEC_FETCH_MODE")="navigate"data("Header","HTTP_SEC_FETCH_SITE")="cross-site"data("Header","HTTP_TE")="trailers"data("Header","HTTP_UPGRADE_INSECURE_REQUESTS")=1data("Header","HTTP_URL")="/csp/sys/oauth2/OAuth2.Response.cls?code=1.AYEAtoU960T0LUeMM9-jlwzKSY07FhnHjcpHk9JJyAG7N7SBABGBAA.AgABBAIAAADW6jl31mB3T7ugrWTT8pFeAwDs_wUA9P_nJfgQz1opSREZfNM1YsYhPyuy0eYAH2xqi-Odzkaw5BA3RJf6UZGdbO9935qz901QO-ot0t8nEZm30vLXzpYGE4D_Ka4IneG0Dr-S5vthEvtwuAi241Ej3TG7xM_3ig-NKio29-pAJ-8N_5w7aZ4V97G0rZLmFmjcPW1EzvjOBRw8PBrbm-q69vgaV0z9iRX5m4P3PDwkWpP0anUbHfrEUfVyfekxrz9EVGQFbiib0zQI0ih1R4HvUIpaVsh195Vz7NL82q5m-nl1bcQ4q64m7-LP_QQZ9p16Wgcqjaj9OyXw58uMUl2bLB4fS89mDpuZc3EsqPQrKlZlx-U4ADkXw-ydpc4Oxq1ajyDdU5opTH3jZJ3wUBlQlDQxBCjeYq7Z3ptDfMNCIwV5axpqTsXM2R5UcPQidCE-cz58YMDjM0akKvkpJ05H2c-0VzXg61c_-gNXuyMwtxBOyywRwS-Sqx6yAryJQv_XVuF2xGpI5MDEo1rhBVZbq4M69VsTR69YXDZylyRJBaH78QqmfZWr5Qd4_czyfp4TiymMF-cA-dJ2MFSNEOCoZlygc0HMOvqkz1-A_ar4mYFVDSC2uEcN_W4e9hg08a-NQUcZtcUo8PfmGQArByfQC10IMBRqrQtH2Y_mMbuVxIYvjkKDkN6iibFZbrNGI7yUke7Q5uKcNdhwrCsQ6Vy8xOsDwRwTGblFXpHD13z_K6KubKA5uvlCzvgHpjhHoekjzPgjdufY7sEFf-Yy&session_state=eaaef793-3d71-420c-af01-faf608f1086a"data("Header","HTTP_USER_AGENT")="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"data("Header","HTTP_VERSION")="HTTP/1.1"data("code",1)="1.AYEAtoU960T0LUeMM9-jlwzKSY07FhnHjcpHk9JJyAG7N7SBABGBAA.AgABBAIAAADW6jl31mB3T7ugrWTT8pFeAwDs_wUA9P_nJfgQz1opSREZfNM1YsYhPyuy0eYAH2xqi-Odzkaw5BA3RJf6UZGdbO9935qz901QO-ot0t8nEZm30vLXzpYGE4D_Ka4IneG0Dr-S5vthEvtwuAi241Ej3TG7xM_3ig-NKio29-pAJ-8N_5w7aZ4V97G0rZLmFmjcPW1EzvjOBRw8PBrbm-q69vgaV0z9iRX5m4P3PDwkWpP0anUbHfrEUfVyfekxrz9EVGQFbiib0zQI0ih1R4HvUIpaVsh195Vz7NL82q5m-nl1bcQ4q64m7-LP_QQZ9p16Wgcqjaj9OyXw58uMUl2bLB4fS89mDpuZc3EsqPQrKlZlx-U4ADkXw-ydpc4Oxq1ajyDdU5opTH3jZJ3wUBlQlDQxBCjeYq7Z3ptDfMNCIwV5axpqTsXM2R5UcPQidCE-cz58YMDjM0akKvkpJ05H2c-0VzXg61c_-gNXuyMwtxBOyywRwS-Sqx6yAryJQv_XVuF2xGpI5MDEo1rhBVZbq4M69VsTR69YXDZylyRJBaH78QqmfZWr5Qd4_czyfp4TiymMF-cA-dJ2MFSNEOCoZlygc0HMOvqkz1-A_ar4mYFVDSC2uEcN_W4e9hg08a-NQUcZtcUo8PfmGQArByfQC10IMBRqrQtH2Y_mMbuVxIYvjkKDkN6iibFZbrNGI7yUke7Q5uKcNdhwrCsQ6Vy8xOsDwRwTGblFXpHD13z_K6KubKA5uvlCzvgHpjhHoekjzPgjdufY7sEFf-Yy"data("session_state",1)="eaaef793-3d71-420c-af01-faf608f1086a" **OAuth2-2 2024-11-25 10:01:55.9126365 ns=%SYS routine=%OAuth2.Utils.1 job=2228 sessionid=E5RZL9jf5N[OAuth2.Response:OnPreHttp]Error: FEHLER #8861: Unerwartete Parameter in umgeleiteter Zugriffstokenantwort: Unexpected state parameter: . Request Log: Spoiler HandleRequest startedTimestamp: 2024-11-25 11:01:55Received parameters:parameter code: 1.AYEAtoU960T0LUeMM9-jlwzKSY07FhnHjcpHk9JJyAG7N7SBABGBAA.AgABBAIAAADW6jl31mB3T7ugrWTT8pFeAwDs_wUA9P_nJfgQz1opSREZfNM1YsYhPyuy0eYAH2xqi-Odzkaw5BA3RJf6UZGdbO9935qz901QO-ot0t8nEZm30vLXzpYGE4D_Ka4IneG0Dr-S5vthEvtwuAi241Ej3TG7xM_3ig-NKio29-pAJ-8N_5w7aZ4V97G0rZLmFmjcPW1EzvjOBRw8PBrbm-q69vgaV0z9iRX5m4P3PDwkWpP0anUbHfrEUfVyfekxrz9EVGQFbiib0zQI0ih1R4HvUIpaVsh195Vz7NL82q5m-nl1bcQ4q64m7-LP_QQZ9p16Wgcqjaj9OyXw58uMUl2bLB4fS89mDpuZc3EsqPQrKlZlx-U4ADkXw-ydpc4Oxq1ajyDdU5opTH3jZJ3wUBlQlDQxBCjeYq7Z3ptDfMNCIwV5axpqTsXM2R5UcPQidCE-cz58YMDjM0akKvkpJ05H2c-0VzXg61c_-gNXuyMwtxBOyywRwS-Sqx6yAryJQv_XVuF2xGpI5MDEo1rhBVZbq4M69VsTR69YXDZylyRJBaH78QqmfZWr5Qd4_czyfp4TiymMF-cA-dJ2MFSNEOCoZlygc0HMOvqkz1-A_ar4mYFVDSC2uEcN_W4e9hg08a-NQUcZtcUo8PfmGQArByfQC10IMBRqrQtH2Y_mMbuVxIYvjkKDkN6iibFZbrNGI7yUke7Q5uKcNdhwrCsQ6Vy8xOsDwRwTGblFXpHD13z_K6KubKA5uvlCzvgHpjhHoekjzPgjdufY7sEFf-Yyparameter state: eaaef793-3d71-420c-af01-faf608f1086aparameter error:parameter access_token:parameter id_token:--------------------------------------------------------
go to post Daniel Goerke · Feb 10 Everything worked well. Many thanks for the tip. I have now saved the files to be edited in: D:\IRIS\src\... But is it normal that I have to have a separate folder in the "src\csp\"? Because if I simply edit the .csp in the "csp" folder and compile it, I get the "Non-JSON response" error again.This in itself is not a problem for me, I just want to understand what triggers this error.
go to post Daniel Goerke · Feb 9 I just checked the Management Portal and had to change the path of the web application. The path was at:C:\InterSystems\IRIS\CSP\goerke\ Then I changed the path toC:\InterSystems\IRIS\CSP\goerke\src\csp\goerke And that solved the problem and everything works as it should and I can start programming. Thank you for your help!
go to post Daniel Goerke · Feb 9 I think the 2 pictures explain this quite well: Before compiling: After compiling: In the second image, the index.csp has been added at the bottom after compilation. It is also present in the directory:
go to post Daniel Goerke · Feb 9 I'm not following any particular path. I wanted to work on it outside of my internship and create and test a few little things myself to get a feel for it. The compiling and so on is working so far, but is it normal that it recreates the file in the root directory of the namespace?
go to post Daniel Goerke · Feb 9 Thank you very much, that has helped me. But now I get another error message that I can't do anything with: "Non-JSON response to /iris/api/atelier/v8/GOERKE/doc/csp%5Cindex.csp?ignoreConflict=1 request. Is the web server suppressing detailed errors?"