Socket
Socket
Sign inDemoInstall

@smarterservices/iam-react-client

Package Overview
Dependencies
22
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @smarterservices/iam-react-client

react-ui-validate ==== Description: A component that will remove are add elements to the dom based on if the users iam document allows access. Getting Started: === var ValidateConstructor = require('ValidateConstructor') var Validate = new ValidateConst


Version published
Weekly downloads
11
increased by1000%
Maintainers
3
Install size
4.01 MB
Created
Weekly downloads
 

Readme

Source

react-ui-validate

Description: A component that will remove are add elements to the dom based on if the users iam document allows access. Getting Started:

var ValidateConstructor = require('ValidateConstructor')
var Validate = new ValidateConstructor({iam:'iam object'})

Two ways of use:

<Validate iam="iam doc" iamAction="iam action" iamResource="iam resource">
<div><p>first way to use</p></div>
</Validate>

This way will hide or show everything in the validate component based on the action and resource that was tagged to it.

<Validate iam="iam doc">
<div>
	<p iamAction="action" iamResource="resource">second way to use</p>
	<div>
		<p iamAction="" iamResource="">At any nest level</p>
	</div>
</div>

This way will add or remove content from the dom based on the action and resource tags applied directly to the element. This will work at any nest level(so you could wrap the whole page if you wanted to invalidate) and

FAQs

Last updated on 26 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc