Skip to content

Conversation

@grs
Copy link
Contributor

@grs grs commented May 16, 2025

What does this PR do?

This adds an alternative option to the oauth_token auth provider that can be used with existing authorization services which support token introspection as defined in RFC 7662. This could be useful where token revocation needs to be handled or where opaque tokens (or other non jwt formatted tokens) are used

Test Plan

Tested against keycloak

@grs
Copy link
Contributor Author

grs commented May 19, 2025

@ashwinb I have updated this to add an alternative behaviour to your oauth_token provider, rather than having a distinct provider.

@grs grs requested a review from bbrowning as a code owner May 20, 2025 14:07
Copy link
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

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

woot. I have one comment inline about validation but looks good otherwise.

@grs grs force-pushed the rfc7662 branch 2 times, most recently from 5c25a19 to c31fc60 Compare May 20, 2025 17:39
This may be desired in order to reject revoked tokens or where opaque
tokens are used.

Signed-off-by: Gordon Sim <[email protected]>
@ashwinb ashwinb merged commit 091d8c4 into llamastack:main May 21, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants