Available on (crate features
testing) and non-target_family=wasm only.Expand description
Helpers to mock an OAuth 2.0 server for the purpose of integration tests.
Structsยง
- Device
Authorization Endpoint - A prebuilt mock for a
POST /oauth/devicerequest. - Mock
Server Metadata Builder - Helper struct to construct an
AuthorizationServerMetadatafor integration tests. - OAuth
Mock Server - A
wiremockMockServeralong with useful methods to help mocking OAuth 2.0 API endpoints easily. - Registration
Endpoint - A prebuilt mock for a
POST /oauth/registrationrequest. - Revocation
Endpoint - A prebuilt mock for a
POST /oauth/revokerequest. - Server
Metadata Endpoint - A prebuilt mock for a
GET /auth_metadatarequest. - Token
Endpoint - A prebuilt mock for a
POST /oauth/tokenrequest.