question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opaque - reference token validation

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Hi,

I have an identity provider OIDC compliant which issues a JWT ID token and an opaque access token (or reference token). Microsoft offers a way to validate a JWT bearer however, I did not see an alternative for opaque tokens.

Describe the solution you’d like

I would like to have a method extension that works the same as ServiceCollection.AddJwtBearer() extension.

We would provide almost the same identity provider information such as the issuer uri, user info, and most importantly the introspect endpoint, which checks if the access token is valid or not.

Finally, we could populate the identity principal with the userinfo endpoint, right after validating the token.

Additional context

No response

Issue Analytics

  • State:open
  • Created 8 months ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
blowdartcommented, Jan 11, 2023

Aggh doh. This is what I get for opening github when I wake up 😃

1reaction
iamjplantcommented, Mar 20, 2023

Agreed! This would be nice to have for those of us who don’t get JWT’s back!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Opaque Tokens
The opaque token serves as a reference to the user attributes and token metadata. Structured token (passed by value): Its format is well-defined ......
Read more >
oauth - What is an opaque token?
Opaque tokens: Tokens in a proprietary format that typically contain some identifier to information in a server's persistent storage. To ...
Read more >
OAuth 2.0 Resource Server Opaque Token
Typically, an opaque token can be verified via an OAuth 2.0 Introspection Endpoint, hosted by the authorization server. This can be handy when ......
Read more >
JSON Web Token(JWT) vs Opaque Token
The opaque token is simply a primary key that references a database entry that has the data, instead of storing user identity and...
Read more >
Opaque Access Tokens
An opaque or a reference token is a random and a unique string of characters which has been issued by the token service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found