SAP BTP Security - IDP XSUAA JWT

SAP BTP Security

basic concepts:

  1. Identity Provider (IdP)
  2. XSUAA
  3. OAuth
  4. Application Router
  5. Authentication and Authorization Implementation etc.
  1. Identity Provider (IdP)
    Applications in SAP BTP does not store user information. Instead, the applications redirect the authentication to an Identity Provider. This concept makes it possible to decouple and centralize authentication functionality.
    In SAP BTP, there are 2 options for Identity Provider – SAP ID Service and SAP Cloud Identity Authentication service (IAS).

1.1 SAP ID Service
SAP ID Service is the default identity provider in SAP BTP. It is a pre-configured, standard SAP public IdP (account.sap.com) that is shared by all customers.

1.2 SAP Cloud Identity Authentication service (IAS)
For many customers, business users might be stored in corporate identity providers. SAP recommends using SAP Cloud Identity Services – Identity Authentication Service (IAS) as a hub.
We can connect IAS as a single custom identity provider to SAP BTP. Further use IAS to integrate with corporate identity providers.

2.XSUAA - SAP Authorization and Trust Management Service

What is XSUAA?
SAP XSUAA is an internal development of SAP.

In Cloud Foundry, there is an open-source component called UAA. UAA is an OAuth provider which takes care of authentication and authorization. SAP took the base of UAA and extended it with SAP specific features to be used in SAP BTP. Technically XSUAA is an OAuth server and uses JWT tokens.

XSUAA takes care of authentication and authorization in SAP BTP, Cloud Foundry.

XSUAA does NOT store users data. This is why the XSUAA needs to trust an external Identity Provider (IdP). It can establish trust either with SAP ID Service or a Corporate Identity Provider via SAP Identity Authentication Service (IAS).

  1. Application Router
    When a business application consists of several different apps (microservices), the application router is used to provide a single-entry-point to the business application.
    Technically, Application Router is a Node.js App.

App Router is used to:
Serve static content
Authenticate users
Dispatch request to backend applications(microservices)

App Router delegates the authentication responsibility to XSUAA.

call flow:
a. User request for the resource from Application. The App Router takes incoming.
b. Since user is not authenticated, App Router initiates an OAuth2 flow with the XSUAA.
c. XSUAA forwards the request to Identity Provider to enforce the business user to authenticate.
d. IdP prompts the user to authenticate himself. For Example, by entering username and password.
e. User authenticates himself.
f. If the authentication was successful, Identity Provider sends a SAML token to user (web browser). The g. web browser sends this new SAML token to the XSUAA for authentication.
h. XSUAA consider this request as authenticated and generates an OAuth Token which is technically a JWT token.
i. The App Router enriches each subsequent request with the JWT, before the request is routed to a dedicated application. The application verify the JWT token and send the requested resource to user.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末并思,一起剝皮案震驚了整個(gè)濱河市仅炊,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌愚屁,老刑警劉巖截型,帶你破解...
    沈念sama閱讀 219,427評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件蚕泽,死亡現(xiàn)場離奇詭異,居然都是意外死亡钙姊,警方通過查閱死者的電腦和手機(jī)毯辅,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,551評論 3 395
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來煞额,“玉大人思恐,你說我怎么就攤上這事〔不伲” “怎么了胀莹?”我有些...
    開封第一講書人閱讀 165,747評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長媚媒。 經(jīng)常有香客問我嗜逻,道長,這世上最難降的妖魔是什么缭召? 我笑而不...
    開封第一講書人閱讀 58,939評論 1 295
  • 正文 為了忘掉前任栈顷,我火速辦了婚禮,結(jié)果婚禮上嵌巷,老公的妹妹穿的比我還像新娘萄凤。我一直安慰自己,他們只是感情好搪哪,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,955評論 6 392
  • 文/花漫 我一把揭開白布靡努。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪惑朦。 梳的紋絲不亂的頭發(fā)上兽泄,一...
    開封第一講書人閱讀 51,737評論 1 305
  • 那天,我揣著相機(jī)與錄音漾月,去河邊找鬼病梢。 笑死,一個(gè)胖子當(dāng)著我的面吹牛梁肿,可吹牛的內(nèi)容都是我干的蜓陌。 我是一名探鬼主播,決...
    沈念sama閱讀 40,448評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼吩蔑,長吁一口氣:“原來是場噩夢啊……” “哼钮热!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起烛芬,我...
    開封第一講書人閱讀 39,352評論 0 276
  • 序言:老撾萬榮一對情侶失蹤隧期,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后蛀骇,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體厌秒,經(jīng)...
    沈念sama閱讀 45,834評論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡读拆,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,992評論 3 338
  • 正文 我和宋清朗相戀三年擅憔,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片檐晕。...
    茶點(diǎn)故事閱讀 40,133評論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡暑诸,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出辟灰,到底是詐尸還是另有隱情个榕,我是刑警寧澤,帶...
    沈念sama閱讀 35,815評論 5 346
  • 正文 年R本政府宣布芥喇,位于F島的核電站西采,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏继控。R本人自食惡果不足惜械馆,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,477評論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望武通。 院中可真熱鬧霹崎,春花似錦、人聲如沸冶忱。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,022評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至派诬,卻和暖如春劳淆,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背默赂。 一陣腳步聲響...
    開封第一講書人閱讀 33,147評論 1 272
  • 我被黑心中介騙來泰國打工憔儿, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人放可。 一個(gè)月前我還...
    沈念sama閱讀 48,398評論 3 373
  • 正文 我出身青樓谒臼,卻偏偏與公主長得像,于是被迫代替她去往敵國和親耀里。 傳聞我的和親對象是個(gè)殘疾皇子蜈缤,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,077評論 2 355

推薦閱讀更多精彩內(nèi)容