DLMousey / OIDC.Core

Toy OAuth + OIDC provider written in .net core
1 stars 0 forks source link

Add initial scope management functionality #11

Closed DLMousey closed 2 years ago

DLMousey commented 2 years ago

This PR adds functionality to the API for basic scope management, supporting the basic CRUD actions.

Some additional enhancements include the AuthoriseRoles scope which attempts to match a role name passed as a string (e.g. "admin") to a UserRole object associated with the currently authenticated user, allowing the action to proceed if it's present and returning a 403 if it's not.