Set Up Oracle Identity Cloud Service

In this section of the solution, you learn about the prerequisites that you should have or know before using the Python SDK. In addition, you learn how to assign administrator roles to your Oracle Identity Cloud Service user account so that you can download the Python SDK and register the sample application, contained within the SDK, in Oracle Identity Cloud Service.

Before You Begin

Before you begin setting up Oracle Identity Cloud Service:

  • Complete the Learn about using SDKs to authenticate applications solution.

  • Get a basic knowledge of the DJango framework and Python programming language to understand the code logic that’s presented in this solution.

  • Get access to an instance of Oracle Identity Cloud Service.

  • Make sure that you’re granted access to the identity domain administrator role for your Oracle Identity Cloud Service instance.

  • Download the python_sdk_sample_app.zip file and extract it to the c:\temp folder of your computer.

  • Have an internet connection to build the sample Python web application.

  • Don't have proxy settings preventing the internet connection.

  • Are disconnected from VPN.

You're also required to install the sample application and libraries for the Python SDK. To do this:

  1. Install Python version 2.7.x.

  2. Add the Python installation folder and the Python scripts folder to your local Path system variable. For example, if you installed Python into the c:\Python27 folder, then add the following text to the Path variable:

    c:\Python27;c:\Python27\Scripts
  3. Open a command prompt and run the following commands to verify that both Python and Pip are installed:

    python -V
    pip -V

    The commands provide the versions of Python and Pip that are installed on your computer.

    If you're not using a Windows operating system, then Pip may not be installed with Python. To install Pip, run the following command:

    python -m pip install
  4. Install the Django framework by running the following command:

    pip install Django
  5. Install the required libraries for the Python SDK by running the following commands:

    pip install simplejson==3.13.2
    pip install cryptography==2.1.4
    pip install PyJWT==1.5.2
    pip install requests==2.18.4
    pip install six==1.10.0
    pip install py3_lru_cache==0.1.6

Assign Administrator Roles to Your User Account

Although you have access to an instance of Oracle Identity Cloud Service, you need permissions to use the Identity Cloud Service console to download the Python SDK and to register the sample Python application with Oracle Identity Cloud Service.

You must grant administrative responsibilities to the account that you're using to access Oracle Identity Cloud Service. Assign the security administrator and application administrator roles to your user account.

To assign administrator roles to your user account:

  1. Sign in to Oracle Identity Cloud Service.
  2. In the Identity Cloud Service console, expand the Navigation Drawer, click Security, and then click Administrators.
  3. Expand the node for the Security Administrator role.
  4. Click Add, select the check box for your user account, and then click OK.
  5. Repeat steps 2 through 4 to assign the Application Administrator role to your user account.