Skip to main content

Module Auth

Module Auth 

Source
Expand description

Authentication domain handlers for CocoonService. Two gRPC entry points: GetAuthenticationSession::Fn and RegisterAuthenticationProvider::Fn.

Modulesยง

GetAuthenticationSession
Return an authentication session for the requested provider. Cocoon auth providers register themselves via RegisterAuthenticationProvider and live in ApplicationState; the full OAuth dance requires Mountain to open a browser window, so for now we return an empty session.
RegisterAuthenticationProvider
Register an authentication provider in ApplicationState. Cocoon-side providers (GitHub, Microsoft, etc.) call this on activation; later GetAuthenticationSession calls look up the registered handle.