Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support token-exchange after id_token received #61

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

strehle
Copy link
Owner

@strehle strehle commented Nov 22, 2024

Add 2 new commands

  • jwt-bearer
  • token-exchange

JWT bearer is working with existing id_tokens and return a new id_token

Token-Exchange from RFC 8693 is used for App2App in IAS and can be used to generate a ID or SAML token based on a token.

The API for token-exchange is documented in
https://help.sap.com/docs/cloud-identity-services/cloud-identity-services/configure-client-to-call-identity-authentication-token-exchange

New parameters combined with Docu:

Example:

openid-client -issuer https://<ias-host-name> -client_secret <ias-secret> -client_id <ias-client id> -requested_type saml2 -provider_name <name of API, e.g. SSO> -login_hint <user attribute>

With this call you get a browser windows opended, then

  1. login (if corp.IdP is enable, login to corp.IdP)
  2. IAS id-token created
  3. SAML Bearer token is returned

@strehle strehle merged commit 9c6dc73 into main Dec 2, 2024
3 checks passed
@strehle strehle deleted the token-exchange-after-id-token branch December 2, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant