Thèmes / adapter layer designPoint de vue reformulé
Adapter follows server authorization behavior
For authorization, Harvey’s adapter layer follows the behavior a server exposes: it can discover metadata directly when no challenge is sent, accept valid tokens returned with either 200 or 201, and request the scopes the server advertises.
Derrière ce point de vue
Les traductions sont destinées à la lecture ; les extraits originaux restent la source evidence.
How We Built Harvey’s Connector Library
Extrait original
We handle these differences in an adapter layer. For authorization, we follow the behavior a server actually exposes: we can discover metadata directly when it does not send a challenge, accept valid tokens returned with either 200 or 201, and request the scopes it advertises.