{% extends "base.html" %} {% block content %}

Status

{% if authorized %}

Authorized: Yes

{% if profile %}

User: {{ profile.name }} ({{ profile.email }})

{% endif %} {% if token %}

Granted scopes: {{ token.scope }}

{% if expires_at %}

Token expires: {{ expires_at.strftime('%Y-%m-%d %H:%M:%S %Z') }}

{% endif %} {% endif %}
View upcoming events Log out
{% else %}

Authorized: No

Click the button below to start the Google OAuth authorization code flow.

Request access to Google Calendar
{% endif %}

What should happen when you press the button...

  1. The browser is redirected from your app to Google.
  2. Google asks the user to grant calendar access.
  3. Google redirects back to /oauth/callback with a one-time authorization code.
  4. Your backend exchanges that code for tokens.
  5. Your backend calls the Calendar API using the access token.
{% endblock %}