Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Rename routes and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregone committed Nov 9, 2021
1 parent 8d89b15 commit b4d0ed6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/auth/oidc/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func ProviderConfig(am *pb.AuthMethod_OIDC, sc *pb.ServerConfig) (*oidc.Config,
if !addr.Tls {
u.Scheme = "http"
}
u.Path = "/oidc/callback"
u.Path = "/auth/oidc-callback"

allowedUris = append(allowedUris, u.String())
}
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/oidc-auth-buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class OIDCAuthButtonsComponent extends Component<OIDCAuthButtonsA
urlRequest.setNonce(nonce);
window.localStorage.setItem('waypointOIDCNonce', nonce);
window.localStorage.setItem('waypointOIDCAuthMethod', authMethodProviderName);
let redirectUri = `${window.location.origin}/auth/oidc-redirect`;
let redirectUri = `${window.location.origin}/auth/oidc-callback`;
urlRequest.setRedirectUri(redirectUri);
let authUrl = await this.api.client.getOIDCAuthURL(urlRequest, this.api.WithMeta());
await window.location.replace(authUrl.getUrl());
Expand Down
2 changes: 1 addition & 1 deletion ui/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Router.map(function () {
this.route('auth', function () {
this.route('invite');
this.route('token');
this.route('oidc-redirect');
this.route('oidc-callback');
});
this.route('onboarding', function () {
this.route('install', function () {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ui/app/styles/pages/auth-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
.button, .pds-button {
width: 100%;
}
.oidc-redirect {
.oidc-callback {
.spinner {
font-size: 48px;
margin: 24px 80px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="oidc-redirect">
<div class="oidc-callback">
<h2>{{t 'auth.loading'}}</h2>
<Spinner @size="48"/>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="oidc-redirect">
<div class="oidc-callback">
<h2>{{t 'auth.loading'}}</h2>
<Spinner @size="48"/>
</div>
2 changes: 1 addition & 1 deletion website/content/docs/server/auth/oidc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You should set the following redirect URLs:
to work in the CLI. If you do not set this, the CLI login will not work.
Note that non-TLS is expected here since it is a loopback call.

- `https://<ui addr>/oidc/callback` - This must be set for UI-based
- `https://<ui addr>/auth/oidc-callback` - This must be set for UI-based
OIDC authentication to work. In this case, "ui addr" should be the
routable UI address you visit. And note you SHOULD set TLS (`https`) for
this.
Expand Down

0 comments on commit b4d0ed6

Please sign in to comment.