2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2021-03-19 17:03:03 -04:00
|
|
|
import OIDCAuthenticator from 'auth/authenticators/oidc';
|
|
|
|
|
|
|
|
|
|
export default class ApplicationOIDCAuthenticator extends OIDCAuthenticator {
|
|
|
|
|
buildTokenValidationEndpointURL(id) {
|
|
|
|
|
return `/validate/${id}`;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-01 16:16:46 -04:00
|
|
|
buildAuthEndpointURL() {
|
|
|
|
|
return '/authenticate';
|
2021-03-19 17:03:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildDeauthEndpointURL() {
|
|
|
|
|
return '/deauthenticate';
|
|
|
|
|
}
|
|
|
|
|
}
|