3 ms·
Only OpenID Connect has a guarantee that it will issue a JWT token (and only the id_token). OAuth allows access and refresh tokens to be opaque to the client -
by dwaite 8y ago
Only OpenID Connect has a guarantee that it will issue a JWT token (and only the id_token). OAuth allows access and refresh tokens to be opaque to the client - e.g. either:
- a value only the AS understands (in which case the protected resources will need to use an API to introspect them)
- a format that both the AS and protected resources can understand (such as a legacy crypto format, a COSE token, or a database key)
If your client has to pull apart an access token to extract information and make a decision, you are doing OAuth wrong. In particular, that client code will never work against another AS, and it is more fragile than normal against changes on the AS.
- hirsin 8y agoYes, I misread and typo'd, thinking OP was talking id_tokens and OIDC. Completely correct on the last para, I spend quite a bit of time convincing partners of this.