|
| 1 | + .. Licensed to the Apache Software Foundation (ASF) under one |
| 2 | + or more contributor license agreements. See the NOTICE file |
| 3 | + distributed with this work for additional information |
| 4 | + regarding copyright ownership. The ASF licenses this file |
| 5 | + to you under the Apache License, Version 2.0 (the |
| 6 | + "License"); you may not use this file except in compliance |
| 7 | + with the License. You may obtain a copy of the License at |
| 8 | +
|
| 9 | + .. http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + .. Unless required by applicable law or agreed to in writing, |
| 12 | + software distributed under the License is distributed on an |
| 13 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | + KIND, either express or implied. See the License for the |
| 15 | + specific language governing permissions and limitations |
| 16 | + under the License. |
| 17 | +
|
| 18 | +================================================ |
| 19 | +Manage login settings with Keycloak auth manager |
| 20 | +================================================ |
| 21 | +This topic is related to the Keycloak ``Login Settings``. |
| 22 | +These settings appear when you create a client in Keycloak, and remain accessible afterward under the ``Access Settings`` tab. |
| 23 | +They play an important role in limiting the client's scope and reducing its potential impact area. |
| 24 | + |
| 25 | +Keycloak Client Configuration Guide |
| 26 | +=================================== |
| 27 | +This document explains how to properly configure a Keycloak client using your production HTTP(S) URL |
| 28 | +(``<https://yourcompany.airflow.com>``). |
| 29 | + |
| 30 | +Overview |
| 31 | +-------- |
| 32 | +Client configuration is a crucial part of enabling Keycloak authentication for your application. |
| 33 | +You must ensure that Client Authentication, Authorization, and the Authentication Flow are correctly configured. |
| 34 | + |
| 35 | +Set ``Client Authentication`` to ``ON``. |
| 36 | +Set ``Authorization`` to ``ON``. |
| 37 | +For ``Authentication Flow`` values, refer to the table below. |
| 38 | + |
| 39 | +Login settings (After Client is Created) |
| 40 | +---------------------------------------- |
| 41 | +.. list-table:: |
| 42 | + :header-rows: 1 |
| 43 | + :widths: 30 70 |
| 44 | + |
| 45 | + * - Field |
| 46 | + - Value |
| 47 | + * - Standard Flow |
| 48 | + - ON |
| 49 | + * - Direct Access Grants |
| 50 | + - ON |
| 51 | + * - Implicit Flow |
| 52 | + - OFF |
| 53 | + * - Service accounts roles |
| 54 | + - ON (by default if configuration overridden from Keycloak) |
| 55 | + * - OAuth 2.0 Device Authorization Grant |
| 56 | + - OFF |
| 57 | + * - OIDC CIBA Grant |
| 58 | + - OFF |
| 59 | + |
| 60 | +To enable your application to authenticate users through Keycloak, you must configure the following fields in your Keycloak client: |
| 61 | + |
| 62 | +* Root URL |
| 63 | +* Home URL |
| 64 | +* Valid Redirect URIs |
| 65 | +* Valid Post Logout Redirect URIs |
| 66 | +* Web Origins |
| 67 | +* Admin URL (optional) |
| 68 | + |
| 69 | +Login Settings (While Creating Client)/Access Settings (After Client is Created) |
| 70 | +-------------------------------------------------------------------------------- |
| 71 | +.. list-table:: |
| 72 | + :header-rows: 1 |
| 73 | + :widths: 30 40 |
| 74 | + |
| 75 | + * - Field |
| 76 | + - Production Value |
| 77 | + * - Root URL |
| 78 | + - https://yourcompany.airflow.com |
| 79 | + * - Home URL |
| 80 | + - https://yourcompany.airflow.com |
| 81 | + * - Valid Redirect URIs |
| 82 | + - https://yourcompany.airflow.com/* |
| 83 | + * - Valid Post Logout Redirect URIs |
| 84 | + - https://yourcompany.airflow.com/* |
| 85 | + * - Web Origins |
| 86 | + - https://yourcompany.airflow.com |
| 87 | + |
| 88 | +Logout settings (After Client is Created) |
| 89 | +----------------------------------------- |
| 90 | +.. list-table:: |
| 91 | + :header-rows: 1 |
| 92 | + :widths: 30 70 |
| 93 | + |
| 94 | + * - Field |
| 95 | + - Value |
| 96 | + * - Front channel logout |
| 97 | + - ON |
| 98 | + |
| 99 | +Notes on Keycloak Template Variables |
| 100 | +------------------------------------ |
| 101 | + |
| 102 | +``${authBaseUrl}`` |
| 103 | +This resolves to **Keycloak's own base URL**, not your application's URL. You should not use it as the Root URL for your Airflow application. |
0 commit comments