# Creating App ID in IBM Cloud

## 1. Create IBM Cloud App ID instance

Create one with a name of **appid-example-bank** using the IBM Cloud dashboard <https://cloud.ibm.com/catalog/services/appid>

**NOTE: Make sure you are using your personal account.**

![IBM Cloud App ID Creation](/files/-MHy1TcVXnIxrHSgBgWH)

## 2. Configure App ID

* Allow Sign-up and Sign-in using username and password by going to the tab `Cloud Directory` > `Settings`

![allow-sign-in](https://github.com/IBM/example-bank/raw/main/images/allow-sign-in.png)

* Disable Email Verification by going to the tab `Cloud Directory` > `Email Templates` > `Email verification`

![disable-email](https://github.com/IBM/example-bank/raw/main/images/disable-email.png)

* Add an application called **mobile-simulator** in the `Applications` tab. Select "Regular web application". Make sure you also add an `admin` scope.

![application](https://github.com/IBM/example-bank/raw/main/images/new-app.png)

* Create the `admin` role. The scope would be `mobile-simulator/admin`.

![admin](https://github.com/IBM/example-bank/raw/main/images/create-role.png)

* Create Service credentials with the **Writer** Role so that the simulator can create simulated users with the App ID instance. Name it **appid-example-bank-credentials**

![service-scredentials](/files/-MHI9z9wqWeyoOF76BG0)

## 3. Create secrets

* Create secrets of App ID credentials for OpenShift cluster

You can use this script to create the secrets in your OpenShift cluster. This grabs your App ID instance named `appid-example-bank` and service credentials named `appid-example-bank-credentials`

```
$ ./scripts/mapAppIDtoSecrets.sh

secret/bank-oidc-secret created
secret/bank-appid-secret created
secret/bank-iam-secret created
secret/mobile-simulator-secrets created
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibm-developer.gitbook.io/digital-developer-conference-hybrid-cloud/threat-modeling-and-identity-management/lab1/creating-app-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
