Comments (3)
We need a bit more information to help, We do not want you to post ID's, Secrets or Tokens, but to start you should take the following steps
- share the Auth Endpoint you are using to get a token - it should look something like this: https://login.microsoftonline.com/{{tenantId}}/oauth2/token
- take the corresponding token above and paste it into https://jwt.ms, somewhere in the decoded information you should see roles of "Writer", and "Reader"
if those roles are missing, you are likely missing this step https://github.com/microsoft/fhir-proxy/tree/main/scripts#step-3--grant-admin-access-portal
from fhir-proxy.
Hello @daemel, I also got the 401 response, and with the response body:
You do not have permission to view this directory or page.
I've finished step 3. I can get access token but can't find the Writer
and Reader
roles inside the token, here is my request body while getting token, did I get something wrong?
curl --location --request POST 'https://login.microsoftonline.com/${TENANT_ID}/oauth2/v2.0/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=${FP-SC-URL}/.default' \
--data-urlencode 'client_id=${FP-SC-CLIENT-ID}' \
--data-urlencode 'client_secret=${FP-SC-SECRET}'
from fhir-proxy.
It started to work for me, my error was that when getting the token I used sfp-proxy instead of fpsc-client as client_id.
fpsc_client does have the READER and WRITER roles and it started to work.
from fhir-proxy.
Related Issues (20)
- Getting error for MultiPatient API Test Inferno using(https://github.com/microsoft/fhir-proxy/blob/v2.0/docs/ConfigureProxyONCg10.md) HOT 1
- Authorization failed when access Azure API for FHIR through FHIR Proxy HOT 1
- Getting error for bulk data. Inferno Test 7.3.03. Getting Error with status 500 for NDJSON file. HOT 6
- Could not find Patient Reference Patient/e91975f5-9445-c11f-cabf-c3c6dae161f2 in reference fields patient of resource Provenance/85807868-f29c-1ca9-1d2a-91665d2c4f05 HOT 2
- Issue"The requested \"export\" operation is not enabled" HOT 3
- Get {{proxyfhirServerUrl}}/Procedure and {{proxyfhirServerUrl}}/Goal requests are not working HOT 3
- Cannot pass Inferno 7.2.05 test, get 500 error "export operation failed for reason: Unknown Error" HOT 11
- IssueDocumentReference/af20c556-650b-488f-4e2e-764d7ab714fd: DocumentReference.identifier[0]: if identifier.system is ''urn:ietf:rfc:3986'', then the identifier.value must be a full URI (e.g. start with a scheme) HOT 5
- Cannot able to rotate the FP-ACCESS-TOKEN-SECRET from proxy keyvault. Test 9.3 g(10) certification HOT 4
- Questions about the visual inspection HOT 1
- All scopes are not coming for the new scope selection screen. HOT 2
- Single Patient API- Test Case-Server returns Provenance resources from Patient search by _id + revInclude:Provenance:target HOT 2
- How to perform 9.10.06 Health IT developer demonstrated the ability of the Health IT Module / authorization server to validate token it has issued. HOT 3
- How can I disable the 2FA? It is asking me for 2FA code before the AAD consent screen. This is the extra step as per the Proctor. HOT 4
- Cannot pass Inferno 7.2.05 test, gettting 404 error
- Question: How can we setup the proxy with custom domain name? HOT 24
- Health IT Module attested that it is capable of issuing refresh tokens that are valid for a period of no shorter than three months HOT 6
- How to insert real data into FHIR server? HOT 3
- Creating the FHIR Proxy generates an error at the function app HOT 4
- Authentication Failed - When Calling FHIR Service Through Installed FHIR Proxy - Using v2.0 branch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhir-proxy.