get cookie in mfa-authn-config.xml
Noriyuki TAKEI
ntakei at sios.com
Tue May 1 21:12:55 EDT 2018
Hi,all
Thanks for you advice!!
I could extract cookie value in the folloeing ways.
<bean id="checkSecondFactor" parent="shibboleth.ContextFunctions.Scripted"
factory-method="inlineScript"
p:customObject-ref="shibboleth.HttpServletRequest">
<constructor-arg>
<value>
<![CDATA[
logger =
Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.authn.impl.TransitionMultiFactorAuthentication");
var cookies = custom.getCookies();
for (var i = 0; i < cookies.length; i++) {
logger.info("name:" + cookies[i].getName());
logger.info("value:" + cookies[i].getValue());
}
nextFlow = "authn/Totp";
nextFlow;
]]>
</value>
</constructor-arg>
</bean>
2018-05-02 5:25 GMT+09:00 Tony Plovich <aplovich at anl.gov>:
> The example here:
>
> https://wiki.shibboleth.net/confluence/display/IDP30/
> SPNEGOAuthnConfiguration#SPNEGOAuthnConfiguration-
> ExampleConditionsinJavaScript:
>
> can be adapted to the scripted MFA flow selector shown here:
>
> https://wiki.shibboleth.net/confluence/display/IDP30/
> MultiFactorAuthnConfiguration#MultiFactorAuthnConfiguration-
> ProgrammaticallySelectingFlows
>
> Tony Plovich (aplovich at anl.gov)
> Argonne National Laboratory
>
> On 05/01/2018 01:12 AM, Noriyuki TAKEI wrote:
>
> Hi,all
>
> I'd like to get Cookie values in /opt/shibboleth-idp/conf/
> authn/mfa-authn-config.xml.
>
> Spacifically,I'd like to omit specific flow on the basis of cookie value.
>
>
>
>
--
・‥…━━━━━━━━━━━━━━━━━━━━━━━…‥
サイオステクノロジー株式会社
技術部
クラウドソリューショングループ
武井 宜行
〒106-0047 東京都港区南麻布二丁目 12 番 3 号 サイオスビル
TEL:070-6569-1211 (直通) 03-6401-5117 (部代表)
URL:http://www.sios.com/
■SIOSの最新情報はこちらから!「いいね!」をお待ちしています■
(SIOS Technology):http://www.facebook.com/SIOSTechnology
(OSSよろず相談室):http://www.facebook.com/OSSyorozu
■Twitter公式アカウント■
https://twitter.com/#!/SIOS_Technology
・‥…━━━━━━━━━━━━━━━━━━━━━━━…‥
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20180502/8d5d9fd8/attachment.html>
More information about the users
mailing list