Server is pad's OAuth 2.1 authorization server. It composes fosite handlers over the storage adapter and exposes the fosite.OAuth2Provider that sub-PR C's HTTP handlers consume.
| 52 | // fosite handlers over the storage adapter and exposes the |
| 53 | // fosite.OAuth2Provider that sub-PR C's HTTP handlers consume. |
| 54 | type Server struct { |
| 55 | provider fosite.OAuth2Provider |
| 56 | cfg Config |
| 57 | storage *Storage |
| 58 | } |
| 59 | |
| 60 | // NewServer constructs an OAuth 2.1 authorization server backed by |
| 61 | // fosite v0.49.0. |
nothing calls this directly
no outgoing calls
no test coverage detected