diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp index 11765ad6467f..93be75d6dd3d 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp @@ -14,7 +14,6 @@ using Azure.Core; title: "Contoso Widget Manager", }) @versioned(Contoso.WidgetManager.Versions) - namespace Azure.Contoso.WidgetManager; @doc("Versions info.") @@ -28,8 +27,10 @@ enum Versions { model ContosoAuthFlow { @doc("The auth flow type.") type: OAuth2FlowType.implicit; + @doc("The auth flow authorization URL.") authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize"; + @doc("The auth flow token URL.") scopes: ["https://security.microsoft.com/.default"]; } diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml index be2d144fd3fb..40b6e2c8b124 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml @@ -28,4 +28,4 @@ options: name: "@azure-rest/contoso-widgetmanager-rest" "@azure-tools/typespec-java": package-dir: "azure-contoso-widgetmanager" - namespace: com.azure.contoso.widgetmanager \ No newline at end of file + namespace: com.azure.contoso.widgetmanager