Description
This is js destributed as single file, which create global class AuthorisationContext
Install
npm install ccs-security-js
Usage
Add scripts to your app
Create service
var service= tenant: '<guid>' clientId: '<guid>' redirectUri: '<url>' endpoints: '<url>': '<unique url or guid>' '<url>': '<unique url or guid>' ... ocpApimSubscriptionKey: '<id>' organizationId: '<id>' getRoleUrl: '<url>' getRoleResource: '<unique url or guid>' ;
Use it. For example, receive privileges
service;