Comments (8)
This includes the definition of roles for using with requires_role
?
from saturn.
Hey, yes - I've added helpers for requiring role, or claim in authentication refactoring I've done today.
The helpers that can be plugged in scope
, pipeline
or controller
are here - https://github.com/SaturnFramework/Saturn/blob/master/src/Saturn/Authentication.fs
The helpers for application
- https://github.com/SaturnFramework/Saturn/blob/master/src/Saturn/Application.fs#L157-L235
Feedback welcomed.
from saturn.
Not really the helper I had in mind, but something for that part: https://vtquan.github.io/fsharp/setting-up-services-with-giraffe/
from saturn.
Oooh.. sure, adding those should be possible!
from saturn.
There is a lot that can be added to IServiceCollection
and not sure where the line should be drawn. Maybe just having a helper to add a custom service to ServicesConfig
would be enough in the case where the user need it.
from saturn.
Helper for adding custom ServiceConfig
configuration definitely should be there - I'm not sure why it's not here since I've added similar helpers for both ApplicationBuilder
and `WebHostBuilder - https://github.com/SaturnFramework/Saturn/blob/master/src/Saturn/Application.fs#L77-L85
And looking again at the link you've provided - how does AddAuthorization
fits with non-ASP.NET-MVC applications (i.e. Giraffe)? MSFT documentation essentially points to using [<Authorize>]
attributes on ASP.NET-MVC controllers which is not the case for us.
from saturn.
I was probably assuming stuff that is not true. I was understanding that these policies could behave as a role alias so I could use them in requires_role
. Like the link, using Administrators
to match Administrator and Moderators
to match Administrator or Moderator.
Could we have a requires_policy
with that behaviour?
from saturn.
Authentication helpers implemented in 3fe92ab
Authorization helpers discussion moved to #26
from saturn.
Related Issues (20)
- Get WebHostEnvironment from CE extension HOT 1
- use_grpc fails if service has multiple constructors
- [Security] Workflow benchmark.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow build.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow publish.yml is using vulnerable action actions/checkout HOT 1
- [Security] Workflow publish.yml is using vulnerable action mindsers/changelog-reader-action
- Endpoint Routing Still Experimental? HOT 1
- Map Standard Controller to Router or Controller?
- Endpoint router does not have concept of NotFoundHandler HOT 1
- Router executes all getf functions regardless of them being called (in debug only), is passing null into the arguments HOT 2
- Considering file-based router ?
- How To Start a Saturn Project HOT 27
- How to externalize configuration information HOT 2
- requireHeader Pipeline Helper Returning Http 404
- svg has mimetype text/plain
- [MINOR] spelling error in comments in sample application HOT 1
- Update docs to reflect latest changes and use enpoints routing as default?
- Publish Application.fs independent CE for Aspnetcore builder as a separate nuget package with only aspnet dependencies
- Zookeeper zxid溢出后选举.saturn web会出现重连失败.
- sample/ChannelsSample throws error on join HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saturn.