Authorization

This page holds the documentation for the different methods contained in the Authorization folder

Code documentation

pyCSM.authorization.auth.change_properties(property_dictionary)

Takes a dictionary of properties and the values that user wants to change and changes them in the file.

Parameters
  • property_dictionary (dict) – Dictionary of the keys and values that need

  • file. (to be changed in the) –

  • {"language" (ex.) – “en-UK”, “verify”:True}

Returns

Returns the new properties dictionary.

pyCSM.authorization.auth.get_properties()

Returns a dictionary of the current properties and their values set for the file.

pyCSM.authorization.auth.get_token(url, username, password)

Retrieves a REST token from the server to be used for future REST commands.

Parameters
  • url (str) – Base url of csm server ex. https://servername:port/CSM/web.

  • username (str) – username for server login.

  • password (str) – password for server login.

Returns

Returns a token string to be used to make future rest calls to the given CSM server.