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-02-05 10:53:49 +00:00
|
|
|
<section id="social-github">
|
|
|
|
<title>GitHub</title>
|
|
|
|
<para>
|
2014-08-18 14:48:28 +00:00
|
|
|
To enable login with GitHub you first have to create an application in
|
2015-02-21 01:08:57 +00:00
|
|
|
<link xlink:href="https://github.com/settings/applications">GitHub Settings</link>. Then you need to copy
|
2014-02-05 10:53:49 +00:00
|
|
|
the client id and secret into the Keycloak Admin Console.
|
|
|
|
</para>
|
|
|
|
<orderedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2015-02-21 01:08:57 +00:00
|
|
|
Log in to <link xlink:href="https://github.com/settings/applications">GitHub Settings</link>. Click the
|
2014-02-05 10:53:49 +00:00
|
|
|
<literal>Register new application</literal> button. Use any value for <literal>Application name</literal>,
|
|
|
|
<literal>Homepage URL</literal> and <literal>Application Description</literal> you want. In <literal>Authorization callback URL</literal>
|
|
|
|
enter the <link linkend="social-callbackurl">social callback url</link> for your realm. Click the
|
|
|
|
<literal>Register application</literal> button.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Copy <literal>Client ID</literal> and <literal>Client secret</literal> from the
|
2015-02-21 01:08:57 +00:00
|
|
|
<link xlink:href="https://github.com/settings/applications">GitHub Settings</link> into the settings
|
2014-02-05 10:53:49 +00:00
|
|
|
page in the Keycloak Admin Console as the <literal>Key</literal> and <literal>Secret</literal>. Then click
|
2015-01-13 18:50:44 +00:00
|
|
|
<literal>Save</literal> in the Keycloak Admin Console to enable login with GitHub.
|
2014-02-05 10:53:49 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</orderedlist>
|
|
|
|
</section>
|