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

Error in generated code when I use the connected service on an existing API project #1900

Closed
bradygaster opened this issue May 17, 2022 · 0 comments · Fixed by #1901
Closed

Comments

@bradygaster
Copy link
Member

I used Visual Studio Connected Service to add auth to an API project. I'll document what I did here step-by-step.

My project has a front-end web app and a back-end minimal API app. So I go to manage connected services:

image

Then I select identity platform, then Next to install the tool.

image

Register a new app:

image

Enable graph:

image

Next, next, finish, leaving everything checked per the defaults.

The generated code is surprisingly accurate, but there are two errors:

image

And...

image

So as it is, the code won't compile after I use the scaffolder. Shows a lot of promise, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant