* fix: 🐛 cannot retry oidc authentication in desktop & admin ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15250
24 lines
496 B
JavaScript
24 lines
496 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
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;
|
|
}
|
|
}
|