You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
I created a new confidential client with this allowed scopes:
I use it in a stand-alone launch sequence with scope 'patient/*.read launch/patient'. The sandbox let me login and then select a patient (so it recognized 'launch/patient') but then it redirects back with an invalid_scope error code
Any idea of what could be the problem?
Thanks
- Michele
CareEvolution Inc
Michele Mottini
unread,
Oct 27, 2016, 11:52:27 AM10/27/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
I re-created the confidential client using the quick registration form and now I am not getting the invalid_scope error anymore, but the access token request fails with an invalid_client, 'Bad client credentials' error.
Could you try this for comparison against your OAuth client?
Best,
Nikolai
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to smart-...@googlegroups.com
Also, worth pointing out that if you
are sending a client secret via the "Authorization" header for
your token exchange request, you should NOT include a "client_id"
parameter in the body. For some reason MitreID gets confused if
your request includes both. Here is a sample client-side logic:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
Thanks Nikolai, I think that that is exactly the problem - I am still sending client_id in the body - I'll try to remove it.
(BTW according to the specs client id and client secret should be URL-encoded before being concatenated, your JavaScript code sample does not do that - does MITRE expects URL encoded?)
- Michele
Michele Mottini
unread,
Oct 28, 2016, 3:21:07 PM10/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
...yes, removing client_id from the body fixed the problem, now works fine
(and I realized that URL-encoding for MITRE is moot, the client id and client secret are auto-generated and they do not contain any character that needs encoding)
Thanks
- Michele
Nikolai Schwertner
unread,
Oct 28, 2016, 3:50:42 PM10/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to smart-...@googlegroups.com
Cool.
Yes, no need to urlencode the components of the Authorization
header, since they get base64 encoded anyways and never parsed as
anything else. The only character that would be of concern is
colon (:) but that's not a valid character for either of these
strings. So, the documentation example is right
http://docs.smarthealthit.org/authorization/basic-auth-example/
Justin Richer
unread,
Nov 12, 2016, 7:44:48 PM11/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Michele Mottini, SMART on FHIR
To be fully clear and pedantic:
While MITREid explicitly chooses values that don’t need an additional level of encoding, not all server implementations will do so, and any client or client library really needs to do both levels of encoding to be fully spec compliant. This has bitten several implementations in the past that we’ve seen, and even our own client library didn’t always do the URL Encoding and therefore fell apart when talking to a different server implementation.
So even though you don’t *have* to to make it work here, you still should.
— Justin
Michele Mottini
unread,
Nov 12, 2016, 8:01:38 PM11/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
Thanks
Yes I did - in the client and also in our server, that was not doing it
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
Also, worth pointing out that if you
are sending a client secret via the "Authorization" header for
your token exchange request, you should NOT include a "client_id"
parameter in the body. For some reason MitreID gets confused if
your request includes both. Here is a sample client-side logic:
...just discovered that the Cerner server DO require the "client_id" parameter in the body when using the "Authorization" header, so client code that works with SMART does not work with Cerner and vice-versa.
I'd rather avoid having to add a flag to change the behavior depending on the server - any chance of having the two servers accept the same things?
- Michele
CareEvolution Inc
Matt Randall
unread,
May 4, 2017, 11:58:56 AM5/4/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SMART on FHIR
Michele,
I'm having my team look into our behavior. If we're requiring this (client_id when credentials are present) I'd agree that we're out of compliance with RFC 6749 and we'll work to get this corrected quickly.
Note: technically, under RFC6749 you should be able to include that always, so I don't necessarily want to dissuade the MITREid team from supporting that for RFC compliance, either.