Home
Projects
Resources
Alternatives
Blog
Sign In
YellowNotes
Save
Abandoned
Sample ASP.NET Web API project with OAuth authentication and many other extensions.
Overview
Reviews
Resources
Project README
YellowNotes
Sample ASP.NET Web API project with OAuth authentication and many other extensions.
Table of contents
The basics of API (CRUD)
Validation
Authentication and authorization
Other
Samples
Useful links
1. The basics of API (
GoodNotesController
)
Create -> Post
Read -> Get
Update -> Put
Delete -> Delete
2. Validation
Basic validation (via
DataAnnotations
attributes)
ModelState validation (
ValidateModelStateAttribute
)
Model empty validation (
CheckModelForNullAttribute
)
Action parameters validation (
ActionParametersValidationAttribute
)
3. Authentication and authorization
Access Token (OAuth bearer token authentication using OWIN middleware) (
SimpleAuthorizationServerProvider
)
Client credentials validation
Token custom parameter
Authentication Ticket custom property
Custom claim
Refresh Token (
SimpleRefreshTokenProvider
)
Custom Authorize attribute (
SimpleAuthorizeAttribute
)
45. Other
Dependency Injection with Autofac (
DependencyConfig
)
API documentation page with Swagger (
SwaggerConfig
)
API exceptions handling (
RequestExceptionAttribute
)
Working CORS (Cross-Origin Resource Sharing) implementation (
CorsProvider
)
Simple Owin middleware to rewrite header from request to response (
CorrelationIdHeaderRewriterMiddleware
)
5. Samples
Token generation
Access to resource denied
Access to resource granted
Refresh Token utilise
Model validation
CORS (Cross-Origin Resource Sharing)
API Documentation page
6. Useful links
HTTP Status Codes:
https://www.restapitutorial.com/httpstatuscodes.html
Choosing an HTTP Status Code:
http://racksburg.com/choosing-an-http-status-code
https://www.ruilog.com/notebook/view/f21862318f93.html
Open Source Agenda is not affiliated with "YellowNotes" Project. README Source:
lkurzyniec/YellowNotes
Stars
34
Open Issues
0
Last Commit
1 year ago
License
GPL 2.0
Tags
Cors
Crud Api
Oauth Authentication
Webapi 2
Open Source Agenda Badge
Submit Review
Review Your Favorite Project
Submit Resource
Articles, Courses, Videos
Submit Article
Submit a post to our blog
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github