user-security
user-security ポリシーを使用して、ユーザーの資格情報を抽出し、それらの資格情報を認証し、ユーザーから許可を取得します。
ゲートウェイのサポート
| ゲートウェイ | ポリシーのバージョン |
|---|---|
| DataPower® API Gateway | 2.0.0 |
このトピックでは、 OpenAPI ソースでポリシーを設定する方法について説明します。アセンブリのユーザーインターフェイスでポリシーを設定する方法の詳細については、 「ユーザーセキュリティ」 を参照してください。
製品情報
user-security ポリシーの形式は以下のとおりです。
- user-security:
version: version
title: title
description: description
factor-id: factor ID
extract-identity-method: method_used_to_extract_credentials
.
.
.
properties_specific_to_the specified_identity_extraction_method
.
.
.
user-auth-method: authentication_method
.
.
.
properties_specific_to_the specified_authentication_method
.
.
.
user-az-method: authorization_method
.
.
.
properties_specific_to_the specified_authorization_method
.
.
.プロパティ-
| プロパティー | 必須 | 説明 | データ・タイプ |
|---|---|---|---|
| version | はい | ポリシーのバージョン番号 | ストリング |
| title | いいえ | ポリシーのタイトル。 | ストリング |
| description | いいえ | ポリシーの説明。 | ストリング |
| factor-id | いいえ | API コンテキストでのファクター認証の結果を識別する ID。 | ストリング |
| extract-identity-method | はい | ユーザー資格情報の抽出に使用する方式を選択します。 使用可能なオプションは次のとおりです。
ID 抽出が失敗した場合にアセンブリー処理を停止するには、 |
ストリング |
| user-auth-method | はい | 認証方式を選択します。 使用可能なオプションは次のとおりです。
ユーザー認証が失敗した場合にアセンブリー処理を停止するには、 |
ストリング |
| user-az-method | はい | 許可方式を選択します。 使用可能なオプションは次のとおりです。
ユーザー許可が失敗した場合にアセンブリー処理を停止するには、 |
ストリング |
例
# basic authentication with LDAP registry
- user-security:
version: 2.0.0
title: user-security
factor-id: default
extract-identity-method: basic
ei-stop-on-error: true
user-auth-method: ldap
ldap-registry: corporate-ldap
au-stop-on-error: true
user-az-method: authenticated
az-stop-on-error: true