Expand description
Authentication domain handlers for CocoonService. Two gRPC entry
points: GetAuthenticationSession::Fn and
RegisterAuthenticationProvider::Fn.
Modulesยง
- GetAuthentication
Session - Return an authentication session for the requested provider. Cocoon
auth providers register themselves via
RegisterAuthenticationProviderand live inApplicationState; the full OAuth dance requires Mountain to open a browser window, so for now we return an empty session. - Register
Authentication Provider - Register an authentication provider in
ApplicationState. Cocoon-side providers (GitHub, Microsoft, etc.) call this on activation; laterGetAuthenticationSessioncalls look up the registered handle.