Okta在应用重定向上验证登录 [英] Okta validate login on app redirect

查看:547
本文介绍了Okta在应用重定向上验证登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试与okta集成一个水疗中心(Angular 2).我在Okta中使用SWA登录方法创建了一个应用.我单击该应用程序,它按预期将我重定向到我的水疗中心应用程序.

We have a spa (Angular 2) that we are trying to integrate with okta. I created an app in okta with SWA sign on method. I click on the app and it redirects me to my spa app as expected.

但是,我看不到重定向上传递的信息.如何验证登录是否成功?我可以验证一些令牌信息吗?还有吗?

However, I do not see and information being passed on the redirect. How do I validate that the login was successful? Is there some token info that I can validate? Something else?

谢谢!

推荐答案

SWA登录方法取决于Okta插件-是否已安装?如果是这样,当您点击登录页面时(其来源与您在应用程序中配置的url匹配),该插件将尝试将凭据注入登录表单.它使用启发式方法找出要注入的字段,因此理想情况下,您的登录页面看起来像是标准登录表单(即,用于用户名的文本字段,用于密码的密码字段和登录按钮).

The SWA sign on method depends on the Okta plugin - do you have it installed? If so, when you hit your login page (and the origin matches the url you've configured in the app), the plugin will try to inject the creds into the login form. It uses a heuristic to figure out which fields to inject into, so ideally your login page will look like a standard login form (i.e. text field for username, password field for password, and a login button).

如果您不想依赖于正在安装的插件(不确定安装设置),还可以使用其他模板应用程序-例如,"Template App"会将凭据发布到端点(尽管这是通常不是一种选择,因为大多数应用程序都希望在其登录表单中添加XSRF令牌.

There are other template apps you can use if you don't want to depend on the plugin being installed (not sure about your setup) - for example, "Template App" will post the credentials to an endpoint (although this is usually not an option since most apps will want to add an XSRF token to their login forms).

这篇关于Okta在应用重定向上验证登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆