Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8891875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:51:00+00:00 2026-06-14T22:51:00+00:00

handlers: – url: /secure_api/.* script: _go_app login: required auth_fail_action: unauthorized This code only brings

  • 0
handlers:
- url: /secure_api/.*
  script: _go_app
  login: required
  auth_fail_action: unauthorized

This code only brings me to a page saying “Login required to view page.” Is there a way to instead redirect to my home page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:51:02+00:00Added an answer on June 14, 2026 at 10:51 pm

    When you specify auth_fail_action: unauthorized, you get the page you are seeing (see here for the details). Changing unauthorized to redirect will take them to the login screen, but if you want to do more granular handling of users based on their logged-in status, your best bet is to do it inside of your code via the Users API. For instance (this is adapted from the docs), here is a simple example that would redirect a non-logged-in user to /:

    from google.appengine.api import users
    import webapp2
    
    class MyHandler(webapp2.RequestHandler):
        def get(self):
            user = users.get_current_user()
            if user:
                # Do stuff here for logged-in users
            else:
                # Redirect if user is None, which is the case for non-logged-in users
                self.redirect('/')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my app.yaml : handlers: - url: /static static_dir: static - url: /.* script: main.app
I have attached Event Handlers to a Border but it seems they only work
I bind two event handlers on this link: <a href='#' id='elm'>Show Alert</a> JavaScript: $(function()
Having multiple event handlers on a jQuery .on() method, like this: $(div.test).on({ mousemove: function(e){
Do signal handlers have a separate stack, (like each thread have separate stacks)? This
I have several event handlers that I bind like this: $('#MyDiv').click(function () {...}); $('#SomeDiv').mouseenter(function
I tried this event handlers on my textbox: private void TextBox_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
Using http handlers I am redirecting the users to some other page. Example: if
The event handlers on my program don't work anymore for some reason. This same
How to overcome event handlers being overridden? I have a script say a.js window.onload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.