loginWithRedirectメソッドで、Actionsやユニバーサルログイン画面の@@config@@でパラメータを渡す – 【Auth0】
ライブラリ
ライブラリ | バージョン |
---|---|
@auth0/auth0-spa-js | 2.0.8 |
Actions(Login)
onExecutePostLoginの引数eventに渡すことができます。
await auth0Client.loginWithRedirect({ authorizationParams: { redirect_uri: window.location.origin, 'key': 'value' // ★ } });
event.request.queryのJSONオブジェクトにkey:valueが追加されます。
ユニバーサルログイン
ユニバーサルログインをカスタマイズします。
var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));
config.extraParamsのJSONオブジェクトにkey:valueが追加されます。
参考サイト

Auth0 Universal Login
DescribeshowAuth0UniversalLoginprovidesyouwiththemeanstoproveyourusers'identitieswithourauthorizationserver.



Structure of @@config@@
I’mtryingtohaveourHLPdisplayinglocallyinabrowsersothatIcaninteractivelyworkwiththelayoutandlogic.We’vegotalotofJSstuffedintothepage,butthatallfailsoncewehittheC...



Configuring @@config@@ for hosted login page
Iamstuckonhowtoactuallyprovidevaluestothe@@config@@object,whichisusedinthehostedloginpagegeneratedcode:Is@@config@@aplaceholder,andifsowhatistheobjectIshouldpro...



Documentation of “@@“ variables?
Incustomloginscriptsthereisavariable“@@config@@“available.InSAMLIDPconnectionsthereare“@@IssueInstant@@”and"@@ProtocolBinding@@“variables.Arethesedocumentedanyw...



Send custom params from auth0-spa-js loginWithRedirect() for using in rules
DearCommunity,I’mdevelopingreactJSappusingauth0-spa-js.IwanttopasscustomparamsthroughtheloginWithRedirect()functionandusesameinrulestoimplementsomecustomlogic.P...


KHI入社して退社。今はCONFRAGEで正社員です。関西で140-170/80~120万から受け付けております^^
得意技はJS(ES6),Java,AWSの大体のリソースです
コメントはやさしくお願いいたします^^
座右の銘は、「狭き門より入れ」「願わくは、我に七難八苦を与えたまえ」です^^
資格:少額短期保険募集人,FP3級,宅建士
コメント