Storing SAML Assertion on mobile app and use them for user session

柔情痞子 提交于 2020-03-04 18:38:38

问题


Trying to set the flow of SSO inside a mobile App. Here is what the flow is

  • SP resource URL is presented to CustomChromeTabs (Android)
  • SP Redirects to IDP for authentication
  • IDP presents login screen
  • User adds credentials and submits back to IDP
  • IDP check for the credentials and sends back SAML Assertion to SP
  • SP process the response and as it trusts IDP, converts SAML Assertion to access token
  • SP redirects token back to mobile app. CustomChromeTab store it in cookie for further resource requests

Problem

  • Due to security issues, storing access token inside a cookie is not advisable

Solution

  1. Store encrypted SAML assertion inside secured android keystore system

Questions

  1. Is it possible to store SAML assertions on client side (here mobile app) and use them later to get access token from SP?
  2. How expirations of these SAML Assertion works?

来源:https://stackoverflow.com/questions/60359761/storing-saml-assertion-on-mobile-app-and-use-them-for-user-session

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!