Comments (9)
That would be nice đ
from docs.webiny.com.
Not sure what you were aiming at here but both components are very necessary. đ
from docs.webiny.com.
Actually it was me aiming at it :D Those components are 90% the same, so I was wondering if we can get away with making it into 1 component. If it's really necessary to have 2 components, let's leave it as is.
But, do we need to have roles
prop?
from docs.webiny.com.
Roles - no.
Those are completely removed, only scopes are relevant now.
from docs.webiny.com.
Regarding components, if you ask me, I would leave it.
SecureRoute
, as you've probably seen, will render a not-authorized error message, which can be customized via a plugin. With it, you only wrap the route, and fallback render happens automatically, no need to handle it for every route with own code.
And SecureView
is just for rendering/not-rendering parts of the UI (so by default, there is no fallback render). We use it in menus components for example, to render/not-render menu items accordingly.
from docs.webiny.com.
BTW guys, there is this PR that removes usage of roles
prop in the docs articles:
I can merge into next
branch.
from docs.webiny.com.
Although, I noticed a few things here that are incorrect (didn't do a review after final changes were made).
Anyways, I'll take a look and merge it.
from docs.webiny.com.
âšī¸ Merged (next
branch) and fixed content in the following articles:
- /docs/webiny-apps/security/development/app/components/secure-view
- /docs/webiny-apps/security/development/app/components/secure-route
- /docs/webiny-apps/security/development/api/graphql-helpers/has-scope
from docs.webiny.com.
Adrian already resolved this issue, so I'll close this.
from docs.webiny.com.
Related Issues (20)
- Fix wrong command reference in docs HOT 1
- How to disable Amazon Elasticsearch and connect to existing or other service (e.g. Elastic Cloud?)
- Guide on how to Migrate Pulumi Backend from default local file, e.g. to https://api.pulumi.com
- DX /scaffolds improvements - Update tutorials
- How to create a new form builder field type?
- Create Custom Application
- How-To Guide - Extend GraphQL API
- How-To Guide - Headless CMS - Defining Models / Groups via Code
- Error during npm install
- Documentation out of date: headless-cms/content-model-plugins
- Documentation out of date: custom full stack application
- Documentation out of Date: How to Customise an Existing Page Builder Element
- Cannot Destroy Cloud Infrastructure HOT 3
- The "Configure AWS Credentials" video
- Troubleshooting Tip: For Configuring AWS Credentials Locally HOT 1
- Typo on the writers programs page. I assume you mean Angels and not Angles. HOT 3
- Workspace 'api-headless-cms' not found HOT 1
- "Extend the GraphQL API" example is outdated and does not work HOT 2
- Error: Cannot find module '../../.babel.react'
- Blank Richtext field
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 docs.webiny.com.