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

How about authentication, because json result from sql, no need model? #170

Closed
meninjanho4788 opened this issue Jan 20, 2017 · 3 comments
Closed
Assignees

Comments

@meninjanho4788
Copy link

How can i use authentication for this case

@shiitake
Copy link

shiitake commented Feb 1, 2017

Can you clarify your question please.

Is there a particular sample in particular you're looking at?

@JocaPC
Copy link
Contributor

JocaPC commented Feb 8, 2017

I will assume that you are talking about the samples in feature/json folder where we are generating JSON in sql. Generating JSON in SQL and access control to your C# method (i.e. controller actions) are completely independent. You can use existing auth mechanism to control what user can execute some action. If your can invoke Product/Edit, then you will just execute underlying sql and generate JSON response.

@jovanpop-msft jovanpop-msft self-assigned this Mar 30, 2017
@jovanpop-msft
Copy link
Contributor

I'm closing this question because there are no additional responses. My suggestion would be to take a look at ASP.NET Core security where it is described how to implement authentication. Authentication and security is independent of model unless if you are relying on SQL Server security model where you would pass identity to database.

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

No branches or pull requests

4 participants