mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
29 lines
623 B
JavaScript
29 lines
623 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
// @ts-check
|
|
import Model from '@ember-data/model';
|
|
import { attr } from '@ember-data/model';
|
|
|
|
export default class AuthMethodModel extends Model {
|
|
@attr('string') name;
|
|
|
|
/**
|
|
* @type {'JWT' | 'OIDC'}
|
|
*/
|
|
@attr('string') type;
|
|
@attr('string') tokenLocality;
|
|
@attr('string') maxTokenTTL;
|
|
@attr('boolean') default;
|
|
@attr('date') createTime;
|
|
@attr('number') createIndex;
|
|
@attr('date') modifyTime;
|
|
@attr('number') modifyIndex;
|
|
|
|
getAuthURL(params) {
|
|
return this.store.adapterFor('authMethod').getAuthURL(params);
|
|
}
|
|
}
|