Skip to content
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

oAuth and service invoke #3182

Closed
pamav opened this issue Oct 17, 2023 · 2 comments
Closed

oAuth and service invoke #3182

pamav opened this issue Oct 17, 2023 · 2 comments
Labels
kind/bug Something isn't working stale

Comments

@pamav
Copy link

pamav commented Oct 17, 2023

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

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

and components.yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: oauth2
namespace: default
spec:
type: middleware.http.oauth2
version: v1
metadata:

I have something wrong config or where is the problem?

Thank you

@pamav pamav added the kind/bug Something isn't working label Oct 17, 2023
Copy link

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.

@github-actions github-actions bot added the stale label Nov 16, 2023
Copy link

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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant