VoileWeb.UserAuthGoogle (Voile v0.1.41)

Copy Markdown View Source

Google OAuth 2.0 login integration via Assent.

Assent's OAuth2 strategy generates and validates a CSRF state token internally (stored in session_params). This module enforces that session_params must be present on callback — if the session cookie is missing (e.g. a forged/forwarded callback URL), the request is rejected.

Summary

Functions

callback(conn)

fetch_google_user(conn, opts)

on_mount(atom, params, session, socket)

request(conn)