You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem with oAuth components and httppipeline oauth configuration in c# webApi.
When I create httprequest in serviceA (this service has oauth config and this service is authenticated) to call ServiceB like this
var http = DaprClient.CreateInvokeHttpClient("serviceB");
var request = new HttpRequestMessage(HttpMethod.Get, "GetValue"); // response is string.
var response = await http.SendAsync(request, cancToken);
var content = await response.Content.ReadAsStringAsync();
content variable is always filled html code oauth url page. and this call never arrive to ServiceB.
Expected Behavior
I thing for call Service A to Service B is it different httpclient and request I dont need oauth verification.
When I call service A actions it is ok I need oauth.
this is my config.yaml:
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: pipeline
namespace: default
spec:
httpPipeline:
handlers:
- name: oauth2
type: middleware.http.oauth2
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.
Hi,
I have problem with oAuth components and httppipeline oauth configuration in c# webApi.
When I create httprequest in serviceA (this service has oauth config and this service is authenticated) to call ServiceB like this
content variable is always filled html code oauth url page. and this call never arrive to ServiceB.
Expected Behavior
I thing for call Service A to Service B is it different httpclient and request I dont need oauth verification.
When I call service A actions it is ok I need oauth.
this is my config.yaml:
apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
name: pipeline
namespace: default
spec:
httpPipeline:
handlers:
- name: oauth2
type: middleware.http.oauth2
and components.yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: oauth2
namespace: default
spec:
type: middleware.http.oauth2
version: v1
metadata:
value: "aaaaaaa"
value: "bbbbbb"
value: "userid"
value: "https://test.test/auth"
value: "https://test.test/token"
value: "http://localhost:3500/v1.0/invoke/serviceA/method/hello"
value: "authorization"
value: "false"
I have something wrong config or where is the problem?
Thank you
The text was updated successfully, but these errors were encountered: