Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIDC Timeout and Web UI #911

Merged
merged 1 commit into from
Apr 7, 2017
Merged

OIDC Timeout and Web UI #911

merged 1 commit into from
Apr 7, 2017

Conversation

russjones
Copy link
Contributor

@russjones russjones commented Apr 7, 2017

Purpose

As covered in #910, when a OIDC request takes longer than 60 seconds, something like the following is presented in the web browser:

{"message":"[web connectors oidc requests]: c94b359a1b1c11e793b7ac87a30d221b not found"}

This PR changes this behavior in two ways:

  1. Increases time for OIDC request to process to 10 minutes in defaults.
  2. If unable to login, a error page is presented to the user with an error message explaining why the login request failed.

Implementation

  • Increased timeout to 10 minutes.
  • In the web handler, redirect to /web/msg/error/login_failed upon errors during login.

Related Issues

Fixes #910

@russjones russjones force-pushed the rjones/oidc-ux branch 2 times, most recently from a1cbe64 to 797c88c Compare April 7, 2017 21:54
@russjones russjones merged commit c79d4c8 into master Apr 7, 2017
@russjones russjones deleted the rjones/oidc-ux branch April 7, 2017 22:14

// redirect to an error page
pathToError := url.URL{
Path: "/web/msg/error/login_failed",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets start using constants for UI route strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants