Replies: 2 comments 8 replies
-
We are looking into this and will have a proper answer tomorrow. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Ovais,
I did not take any chance, the scope was added for both ids.
HTH,
Eric
From: ovaisa ***@***.***>
Sent: Thursday, June 17, 2021 12:17 PM
To: imodeljs/imodeljs ***@***.***>
Cc: Eric Paquet ***@***.***>; Comment ***@***.***>
Subject: Re: [imodeljs/imodeljs] reality-data:read is causing scope error (#1643)
That would be wonderful, thank you.
Actually this is just a test app I created to narrow down/debug the problem. My actual app details is as follows:
Application name: geminai
Application ID: spa-uLi0q234cF2kNluGVFGKnzMnt
If you can request your colleague to add the scope to this application, that would be very helpful...
Thank you!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/imodeljs/imodeljs/discussions/1643*discussioncomment-884224__;Iw!!F1Q1IbZmrAg!TJXWAXraw-L5j3VDeai8-oNC-Kwv2RF1ckMx5-OwKd8pbFiPCvHgBSdbRO586cMY-tE$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATYP2HWJ6RCDD2FEDCJ54ATTTINZFANCNFSM462A5DWQ__;!!F1Q1IbZmrAg!TJXWAXraw-L5j3VDeai8-oNC-Kwv2RF1ckMx5-OwKd8pbFiPCvHgBSdbRO588Q_gbpg$>.
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I created 'vanilla viewer app' using cra template and hosted on Netlify. The initial deployment worked fine. I then added 'reality-data:read' to the scope and this started giving the following error.
https://iviewer.netlify.app/signin-callback?error_description=The+requested+scope+is+invalid%2C+unknown%2C+malformed%2C+or+exceeds+that+which+the+client+is+permitted+to+request.&state=71fcff3d3ad94a81b66eac3157db70de&error=invalid_scope#.
Request Header and Response below. Any guidance on how I can resolve this
Thank you,
Ovais
Request URL: https://imsoidc.bentley.com/connect/authorize?client_id=spa-mUoxM1nhDmQ1MV9NDGZtrOznP&redirect_uri=https%3A%2F%2Fiviewer.netlify.app%2Fsignin-callback&response_type=code&scope=reality-data%3Aread%20openid%20email%20profile%20organization%20imodelhub%20context-registry-service%3Aread-only%20product-settings-service%20general-purpose-imodeljs-backend%20imodeljs-router&state=9293816d6af3467f9c251b15d83e2507&code_challenge=5Pj4cQMBRX9m4DAx2kZ64Ur5sxNcSsH3GbTi1X_rd90&code_challenge_method=S256&prompt=none&response_mode=query
Request Method: GET
Status Code: 302
Remote Address: 3.1.236.213:443
Referrer Policy: strict-origin-when-cross-origin
cache-control: no-cache, no-store
content-length: 0
content-type: text/html;charset=utf-8
date: Wed, 16 Jun 2021 18:29:11 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
location: https://iviewer.netlify.app/signin-callback?error_description=The+requested+scope+is+invalid%2C+unknown%2C+malformed%2C+or+exceeds+that+which+the+client+is+permitted+to+request.&state=9293816d6af3467f9c251b15d83e2507&error=invalid_scope#.
pragma: no-cache
referrer-policy: origin
set-cookie: PF=sYB0MGxB81VSorlY8kxEUEVmwA3P2lBr3mE3IzSN6WHM;Path=/;Domain=bentley.com;Secure;HttpOnly;SameSite=None
:authority: imsoidc.bentley.com
:method: GET
:path: /connect/authorize?client_id=spa-mUoxM1nhDmQ1MV9NDGZtrOznP&redirect_uri=https%3A%2F%2Fiviewer.netlify.app%2Fsignin-callback&response_type=code&scope=reality-data%3Aread%20openid%20email%20profile%20organization%20imodelhub%20context-registry-service%3Aread-only%20product-settings-service%20general-purpose-imodeljs-backend%20imodeljs-router&state=9293816d6af3467f9c251b15d83e2507&code_challenge=5Pj4cQMBRX9m4DAx2kZ64Ur5sxNcSsH3GbTi1X_rd90&code_challenge_method=S256&prompt=none&response_mode=query
:scheme: https
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
cookie: BentleyDomainHintAdapter.previous.subjects=b3ZhaXMuYXNocmFmQHRyaXZvci5jb20=; SnapABugHistory=3#; _ym_d=1618323166; _ym_uid=1618323166268031422; SnapABugUserAlias=%23; cchallenge=true; JSESSIONID=node0b9kgf6664d8v1jrcq2y16va7k22771320.node0; PF=sYB0MGxB81VSorlY8kxEUEVmwA3P2lBr3mE3IzSN6WHM
referer: https://iviewer.netlify.app/
sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"
sec-ch-ua-mobile: ?0
sec-fetch-dest: iframe
sec-fetch-mode: navigate
sec-fetch-site: cross-site
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36
client_id: spa-mUoxM1nhDmQ1MV9NDGZtrOznP
redirect_uri: https://iviewer.netlify.app/signin-callback
response_type: code
scope: reality-data:read openid email profile organization imodelhub context-registry-service:read-only product-settings-service general-purpose-imodeljs-backend imodeljs-router
state: 9293816d6af3467f9c251b15d83e2507
code_challenge: 5Pj4cQMBRX9m4DAx2kZ64Ur5sxNcSsH3GbTi1X_rd90
code_challenge_method: S256
prompt: none
response_mode: query
Beta Was this translation helpful? Give feedback.
All reactions