Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Exactly this! If you are hitting an authorization server via the introspect endpoint, why not simplify things even further and just hit dynamodb or redis or database and check the value of a cookie?

A few reasons why you might want the opaque token come to mind:

* You want the OAuth ecosystem (the libraries, the scopes, the user permissioning)

* You are being forced to use an opaque token because your user authenticates somewhere else, and they only provide you an opaque token.



Or you want to share sessions across multiple domains.

This is where a identity service also can help ;-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: