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
import "@typespec/http";
using TypeSpec.Http;
@service({
title: "Widget Service",
})
@useAuth(
OAuth2Auth<[
{
type: OAuth2FlowType.password,
authorizationUrl: "x",
}
]>
)
namespace DemoService;
### Checklist
- [X] Follow our [Code of Conduct](https://github.com/microsoft/typespec/blob/main/CODE_OF_CONDUCT.md)
- [X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Microsoft/typespec/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
codler
changed the title
[Bug]: Wrong property and generation on OauthFlow2 PasswordFlow
[Bug]: Wrong property and generation on Oauth2Flow PasswordFlow
Apr 9, 2024
Describe the bug
This Passwordflow https://typespec.io/docs/libraries/http/reference/js-api/interfaces/PasswordFlow currently have the property authorizationUrl, it should be tokenUrl instead. See https://swagger.io/docs/specification/authentication/oauth2/
Reproduction
https://typespec.io/playground?c=aW1wb3J0ICJAdHlwZXNwZWMvaHR0cCI7Cgp1c2luZyBUeXBlU3BlYy5IdHRwOwpAc2VydmljZSh7CiAgdGl0bGU6ICJXaWRnZXQgU8YbIiwKfSkKQHVzZUF1dGgoCiAgT8QJMsQFPFsKICAgIMQ9xAHEdDrHH0Zsb3fEbS5wYXNzd29yZCzHJWF1dGhvcml6YXRpb25Vcmw6ICJ4IsYdfQogIF0%2BCikKbmFtZXNwYWNlIERlbW%2FnAIk7Cg%3D%3D&e=%40typespec%2Fopenapi3&options=%7B%22linterRuleSet%22%3A%7B%22extends%22%3A%5B%22%40typespec%2Fhttp%2Fall%22%5D%7D%7D
The text was updated successfully, but these errors were encountered: