Topics / adapter layer design

Attributed viewpoint

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.

Behind the viewpoint

Translations are for reading; original excerpts remain the evidence.

How We Built Harvey’s Connector Library

Original excerpt

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.