-
Notifications
You must be signed in to change notification settings - Fork 234
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
[http-client-csharp] cookie auth is generating incorrect code #5302
Comments
@ArcturusZhang is your suggestion to handle this in the emitter as opposed to the generator? i.e. the emitter filters out the cookie header key from the authentication model? |
I think this is a thing that we must do in the emitter.
We only support part of them in our emitter: ApiKeyAuth and Oauth2Auth.
|
Should this be a cadl-ranch scenario? We should add it into the specs. We should warn and skip in the case of cookie auth. |
Created an issue for for the spector scenario #5584 |
Our current code is treating
cookie
key authentication as if it is aheader
key authentication with the specific header name.This is incorrect.
Proposal: since we could identify the type of authentication (including which kind of api key auth) from the output of TCGC, we should be able to report a diagnostic from the emitter and treat it as if there is no auth.
The text was updated successfully, but these errors were encountered: