Numerous Panicky Mimes

    ccs-security-js

    0.2.3 • Public • Published

    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

    <script src="node_modules/adal-angular/adal.js"></script>
    <script src="node_modules/ccs-security-js/authorisation.js"></script>

    Create service

    var service=new AuthorisationContext({
                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.getPrivileges().subscribe(privileges=>{
        somediv.innerText= 'Privileges: ' + privileges.join('') + '.'
    });

    Keywords

    none

    Install

    npm i ccs-security-js

    DownloadsWeekly Downloads

    0

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    8.67 kB

    Total Files

    3

    Last publish

    Collaborators

    • wolf-off