url:
    # When user visits /google, redirect them to Google to log them in.
    auth-gmail/google:
        pattern: /$YAMLURL/google
        handler: GoogleAuth
        kwargs:
            # You must change the values below. See the link below for instructions
            # https://learn.gramener.com/guide/auth/#google-auth
            key: 817932882244-gdr59t3mpqh5554d1bgdjuh38g6a7ahh.apps.googleusercontent.com
            secret: lwArXkw21KCqDPuJrel-WeQO
            redirect:
                query: next                 # Use google?next=url is specified, redirect to url
                url: /$YAMLURL/             # Else redirect to current directory

    # When user visits /logout, log them out
    auth-gmail/logout:
        pattern: /$YAMLURL/logout
        handler: LogoutHandler
        kwargs:
            redirect:
                query: next                 # If logout?next=url is specified, redirect to url
                url: /$YAMLURL/             # Else redirect to current directory

    # When user visits /auth/gmail/, display index.html as a Tornado template
    auth-gmail/:
        pattern: /$YAMLURL/                 # Maps to the current directory: /auth/gmail/
        handler: FileHandler                # Renders a file
        kwargs:
            path: $YAMLPATH/index.html      # index.html in the current directory
            template: true                  # Make it a Tornado template
