-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return authorization URL response on authorize call, return BadReques… #428
Conversation
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api/Controllers/AadSmartOnFhirProxyController.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api/Controllers/AadSmartOnFhirProxyController.cs
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api/Controllers/AadSmartOnFhirProxyController.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Fhir.Api.UnitTests/Controllers/AadSmartOnFhirProxyControllerTests.cs
Outdated
Show resolved
Hide resolved
I am not convinced that we need to add |
I think that would make it more of an integration test. We may be able to just mock out the returned configuration instead of adding it. |
As Brandon said, I was trying to avoid having the test call out to any external resources by adding the file. As it is now, the file is used as the mock response which the HttpClient sends back. It was just a long enough string it seemed easier to place it in a separate file rather than embed it as a string in the C# file. |
…t error on missing params
…ded integration test for 400 error
523e772
to
987a0da
Compare
…parameter for public or native clients
Forward errors from authorization URL to caller, and return BadRequest error on missing params
Description
Updated authorize route in proxy to return the result from the redirect. For other errors with missing params, return a BadRequest result.
Related issues
Addresses [issue AB#68689].
Testing
Unit test created and run