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