Skip to content

Instantly share code, notes, and snippets.

View scanacs-agruhn's full-sized avatar
🏠
Working from home

André Gruhn scanacs-agruhn

🏠
Working from home
View GitHub Profile
@scanacs-agruhn
scanacs-agruhn / OAuthClient.xsjslib
Created October 22, 2019 06:28
OAuth2.0 Client for XSJS Classic with Client Credentials Grant Flow
/* OAuth Client for HANA XS - Runtime processing for HANA Base DU
*
* Provide the following functionality:
* - get authorize URI
* - exchange authorization code for access token (authorization code flow)
* - get access token by providing SAML assertion (SAML bearer flow)
* - enrich application request by access token
* - refresh flow
* - revoke token(s)
*