最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Sharing oauth token across subdomains for authentication - Stack Overflow

programmeradmin3浏览0评论

I am trying to create a web portal which consists a list of links to multiple other applications hosted in subdomains of portal. Portal and individual applications use same third party oauth2 provider with same public key.

What should be the preferred approch to facilitate seamless navigation for user without asking for a login for each application? If user is logged in to portal then he should be able to open any application links without any re-login.

Only way i can think of is when login happens in portal, token should be saved in a cookie at root domain. This will make this cookie shared across all applications as they all are hosted in subdomains of portal.

Is there any other way to achive seamless navigation across all applications? What is the industry standard to achive this behaviour?

Appreciate any suggestions from your side.

发布评论

评论列表(0)

  1. 暂无评论