Skip to content

Commit

Permalink
Merge pull request negz#26 from negz/err
Browse files Browse the repository at this point in the history
Provide more context when authentication errors occur
  • Loading branch information
negz authored Mar 12, 2018
2 parents fa5a882 + 0023286 commit af9266a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/kuberos.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div id="kuberos">
<b-alert v-if="error" show variant="danger">
<p>Could not connect to authentication API: {{error.response.status}} {{error.response.statusText}}</p>
<p>Authentication failed: {{error.response.status}} {{error.response.statusText}}: {{error.response.data}}</p>
</b-alert>
<b-container v-else fluid>
<b-row><br /></b-row>
Expand Down
2 changes: 1 addition & 1 deletion kuberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (
ErrInvalidKubeCfgEndpoint = errors.New("invalid redirect endpoint")

// ErrInvalidState indicates the provided state param was not as expected.
ErrInvalidState = errors.New("invalid state parameter")
ErrInvalidState = errors.New("invalid state parameter: user agent or IP address changed between requests")

// ErrMissingCode indicates a response without an OAuth 2.0 authorization
// code
Expand Down

0 comments on commit af9266a

Please sign in to comment.