RSI CaaS Training


Step5: RSI Auth

If you already learned Business Platform, you need not this Step.
Let's go to Operation

Step5-1: RSI Auth Login

Go to Sandbox(Open in new window).

Click the "Login" button.
You can see that you are redirected to the Login page.

Step5-2: Check RSI Auth Information

You can see the name and Email address you used to login at the top of this page.

Step5-3: Add Logout function

Logout is not yet implemented.
To edit and update "caas_training/app/controllers/sandbox/logout_controller.rb", execute the following command by copying and pasting the entire text.


cat << EOT > app/controllers/sandbox/logout_controller.rb
require 'active_support/core_ext'

class Sandbox::LogoutController < ApplicationController
  def index
    redirect_target = "#{request.base_url}/sandbox"
    query = { url: redirect_target }.to_query
    redirect_url = "https://devu.accounts.ricoh.com/portal/logout.html?#{query}"
    redirect_to(redirect_url)
  end
end
EOT

Deployment is required after changing the file.
Push the container image with the following command.


az acr login --name your-acr-name
docker build -t your-registry.azurecr.io/your-training-image:{YOUR_TAG} .
docker push your-registry.azurecr.io/your-training-image:{YOUR_TAG}

Go to your Azure CaaS operation dashboard, and change the release tag to {YOUR_TAG}.

After changing, click the "Apply settings" button.

Step5-4: RSI Auth Logout

Click the "Logout" button.
You can see that you are redirected to the Logout page.


Let's go to Operation