Author: Vikas Parikh

Objective

Once MuleSoft RTF (Run Time Fabric) is installed on the underlying infrastructure (AWS/ Azure/ Customer Hosted environment), Ops Center is accessible through the admin credential available in the logs. However, the same credentials need to be shared with the entire team. This could be a security issue, hence what is required is integration with IDM (such as  Google) so that every team member can sign into the Ops Center with their specific credentials. 

For the context of this document, we would install RTF onto AWS environment.

Prerequisite

  • RTF installed on the AWS as per the guide: RTF installation for AWS

Google Integration

Google Set up
  1. Go to https://console.developers.google.com/
  2. Select the dropdown in front of Google APIs at the left. It will open up all the projects under your domain.
  1. Click ‘New Project’ at the top right
  2. Provide Project Name:  apisero-rtf-ops-center
  1. Click ‘Create’
  2. Project will be created. Select the project and configure the OAuth consent screen as below:
    – We will allow only internal users (users belonging to hosted domain – apisero.com)
  1. Click Create
  2. Under OAuth Consent Screen, configure below:

Application Name: Apisero RTF Ops Center

Application logo: Mulesoft

Authorized domains: apisero.com

  1. Click Save
  2. Navigate to ‘Credentials’ -> Create Credentials
  1. Click OAuth Client ID Key
  2. Configure parameters as below:

Application Type: Web Application

Name: Apisero RTF Ops Center

Authorized redirect URIs: https://<rtf-controller-public-dns>:32009/portalapi/v1/oidc/callback

  1. Click Create
  2. OAuth Client should be created. Copy the client Id and secret.
Ops Center Set up
  1. Login to Ops Center as per earlier Step #6
  2. Navigate to user name → settings
  1. Click ‘Auth Connectors’ and then ‘+ Create’
  2. Apply below connector configuration
kind: oidc
version: v2
metadata:
  name: Google
spec:
  redirect_url: "https://<rtf-controller-public-dns>:32009/portalapi/v1/oidc/callback"
  client_id: "<id>.apps.googleusercontent.com"
  client_secret: "<secret>"
  issuer_url: "https://accounts.google.com"
  scope: [email]
  claims_to_roles:
    - {claim: "hd", value: "apisero.com", roles: ["@teleadmin"]}
  1. Only those Google users that belong to hosted domain as apisero.com (all Apisero users) will be able to sign into the Ops Center and they will be provisioned a role of @teleadmin
  1. Click ‘Save’
  2. Click Log out
Login with Google
  1. Go to login page of the Ops Center
  2. ‘Login with Google’ Button would now appear on the sign on screen
  1. Click ‘Login with Google’
  2. You will be redirected to Google login screen
  3. Select the Apisero login account
  1. Enter the correct password and hit Next
  1. Ops Center dashboard appears with Google user (Apisero domain) logged in email ID
  1. Google integration concludes here
  2. Optionally, you can delete the ‘default’ admin user (as part of RTF installation set up) by navigating to user → settings → Users -> admin@runtime-fabric -> Actions -> Delete

With this, you will not be able to login to Ops Center with standard user.

The only login option would be to login with Google.

Leave a Comment