Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following fields need to be defined based on OpenLMIS Auth microservice:

OAUTH_PROVIDERS = [

    {  

Code Block
languagejs
OAUTH_PROVIDERS = [
    {   'name':

...

 'openlmis',
        'icon': 'fa-google',
        'token_key':'access_token',

...

        'icon':'fa-openlmis',

...


        'remote_app':

...

 {
            'consumer_key': '

...

tableau-

...

wdc',

...


            'consumer_secret': 'changeme',

...


            'request_token_params':

...

 {
                'scope': 'read

...

            },

...

 write'
            },
            'access_token_method': 'POST',

...


            'access_token_headers': {
                'Authorization':'Basic dXNlci1jbGllbnQ6Y2hhbmdlbWU=='
            },
            'base_url': 'https://uat.openlmis.org/api/oauth',

...


            'access_token_url':

...

 'https://uat.openlmis.org/api/oauth/token

...

?grant_type=implicit',
            'authorize_url': 'https://uat.openlmis.org/api/oauth/authorize?'

...

        }

    }

}
     }
]