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

Add support for federated connection token exchange #670

Conversation

frederikprijck
Copy link
Member

Changes

This PR adds support for federated connection token exchange.

References

N/A

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@frederikprijck frederikprijck force-pushed the feat/federated-connection-token branch from ab45902 to e665b5b Compare February 3, 2025 11:56
@frederikprijck frederikprijck marked this pull request as ready for review February 3, 2025 12:01
@frederikprijck frederikprijck requested a review from a team as a code owner February 3, 2025 12:01
"grant_type": "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",
"connection": connection,
"subject_token": refresh_token,
"subject_token_type": "urn:ietf:params:oauth:token-type:refresh_token",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it work with all token types i.e. id_token, m2m_refresh_token?

Copy link
Member Author

@frederikprijck frederikprijck Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean, there is nothing to support additional token_types here, this only works with refresh tokens.


def federated_connection_token(
self,
refresh_token: str,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure on the required fields?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, connection and refresh_token are required. login_hint is optional.

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.

2 participants