Files
threshold-ui/ui/admin/app/controllers/scopes/scope/authenticate/method/oidc.js
T

23 lines
495 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
export default class ScopesScopeAuthenticateMethodOidcController extends Controller {
// =services
@service session;
// =attributes
/**
* Authentication URL for the pending OIDC flow, if any.
* @type {?string}
*/
get authURL() {
return this.session.data.pending.oidc.attributes.auth_url;
}
}