keycloak-scim/docbook/auth-server-docs/reference/en/en-US/modules/openshift.xml

88 lines
3.9 KiB
XML
Raw Normal View History

2016-02-03 10:20:22 +00:00
<!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
2014-01-21 14:01:03 +00:00
<chapter id="openshift">
<title>Running Keycloak Server on OpenShift</title>
<para>
Keycloak provides a OpenShift cartridge to make it easy to get it running on OpenShift. If you don't already
have
an account or don't know how to create applications go to
<ulink url="https://www.openshift.com/"/>
first. You can
create the Keycloak instance either with the web tool or the command line tool, both approaches are described
below.
</para>
<warning>
<para>
It's important that immediately after creating a Keycloak instance you open the <literal>Administration Console</literal>
and login to reset the password. If this is not done anyone can easily gain admin rights to your Keycloak instance.
</para>
</warning>
<section>
<title>Create Keycloak instance with the web tool</title>
<para>
Open
<ulink url="https://openshift.redhat.com/app/console/applications"/>
2014-02-18 10:36:58 +00:00
and click on <literal>Add Application</literal>.
2014-01-21 14:01:03 +00:00
Scroll down to the bottom of the page to find the
<literal>Code Anything</literal>
section. Insert
2014-05-27 11:05:22 +00:00
<literal>http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge</literal>
2014-01-21 14:01:03 +00:00
into the
<literal>URL to a cartridge definition</literal>
2014-02-18 10:36:58 +00:00
field and click on <literal>Next</literal>. Fill in the
following form and click on <literal>Create Application</literal>.
2014-01-21 14:01:03 +00:00
</para>
<para>
Click on <literal>Continue to the application overview page</literal>. Under the list of applications you should
find your Keycloak instance and the status should be <literal>Started</literal>. Click on it to open the Keycloak
servers homepage.
</para>
</section>
<section>
2014-01-24 09:35:47 +00:00
<title>Create Keycloak instance with the command-line tool</title>
2014-01-21 14:01:03 +00:00
<para>
Run the following command from a terminal:
2014-05-27 11:05:22 +00:00
<programlisting>rhc app create &lt;APPLICATION NAME&gt; http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge</programlisting>
2014-01-21 14:01:03 +00:00
Replace <literal>&lt;APPLICATION NAME&gt;</literal> with the name you want (for example keycloak).
</para>
<para>
Once the instance is created the rhc tool outputs details about it. Open the returned <literal>URL</literal> in a
browser to open the Keycloak servers homepage.
</para>
</section>
<section>
<title>Next steps</title>
<para>
2014-02-18 10:36:58 +00:00
The Keycloak servers homepage shows the Keycloak logo and <literal>Welcome to Keycloak</literal>.
There is also a link to the <literal>Administration Console</literal>. Open that and log in using username
<literal>admin</literal> and password <literal>admin</literal>. On the first login you are required to change the password.
2014-01-21 14:01:03 +00:00
</para>
<tip>
<para>
On OpenShift Keycloak has been configured to only accept requests over https. If you try to use http
2014-02-18 10:36:58 +00:00
you will be redirected to https.
2014-01-21 14:01:03 +00:00
</para>
</tip>
</section>
</chapter>