forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SAML SP Config Proivder Plugable
- Loading branch information
Showing
24 changed files
with
486 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
254 changes: 128 additions & 126 deletions
254
...ore/src/main/java/org/elasticsearch/xpack/core/security/authc/saml/SamlRealmSettings.java
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...main/java/org/elasticsearch/xpack/core/security/authc/saml/SingleSpSamlRealmSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
package org.elasticsearch.xpack.core.security.authc.saml; | ||
|
||
import org.elasticsearch.common.settings.Setting; | ||
import org.elasticsearch.xpack.core.security.authc.RealmSettings; | ||
|
||
import java.util.Set; | ||
|
||
public class SingleSpSamlRealmSettings { | ||
public static final String TYPE = "saml"; | ||
|
||
public static final Setting.AffixSetting<String> SP_ENTITY_ID = RealmSettings.simpleString( | ||
TYPE, | ||
"sp.entity_id", | ||
Setting.Property.NodeScope | ||
); | ||
|
||
public static final Setting.AffixSetting<String> SP_ACS = RealmSettings.simpleString(TYPE, "sp.acs", Setting.Property.NodeScope); | ||
public static final Setting.AffixSetting<String> SP_LOGOUT = RealmSettings.simpleString(TYPE, "sp.logout", Setting.Property.NodeScope); | ||
|
||
public static Set<Setting.AffixSetting<?>> getSettings() { | ||
Set<Setting.AffixSetting<?>> samlSettings = SamlRealmSettings.getSettings(TYPE); | ||
samlSettings.add(SP_ENTITY_ID); | ||
samlSettings.add(SP_ACS); | ||
samlSettings.add(SP_LOGOUT); | ||
|
||
return samlSettings; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.