MishkaCmsCore.Accounts.ProviderStrategy.Plug (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Both phases of a provider's sign-in: the provider the request path names — kept in the session for the callback, which every provider shares — is looked up among the "auth:providers" plugins, refused unless the site the request reached offers it, and filled into the strategy — its Assent strategy, Assent's own defaults for it, what the plugin overrides, the site's keys and the callback on the site's address — before AshAuthentication's OAuth2.Plug runs the phase.

Summary

Functions

Ends it, where the provider sent the visitor back: with the provider it started with.

Starts a sign-in with the provider in the path, and keeps which one in the session.

Functions

callback(conn, strategy)

Ends it, where the provider sent the visitor back: with the provider it started with.

request(conn, strategy)

Starts a sign-in with the provider in the path, and keeps which one in the session.