2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2021-04-12 18:10:08 -04:00
|
|
|
import Controller from '@ember/controller';
|
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
|
|
|
|
|
|
export default class ScopesScopeAuthenticateMethodOidcController extends Controller {
|
|
|
|
|
// =services
|
|
|
|
|
|
|
|
|
|
@service session;
|
|
|
|
|
|
|
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Authetnication URL for the pending OIDC flow, if any.
|
|
|
|
|
* @type {?string}
|
|
|
|
|
*/
|
|
|
|
|
get authURL() {
|
|
|
|
|
return this.session.data.pending.oidc.attributes.auth_url;
|
|
|
|
|
}
|
|
|
|
|
}
|