mirror of https://github.com/hashicorp/consul
31 lines
405 B
JavaScript
31 lines
405 B
JavaScript
|
export default {
|
||
|
id: 'token-source',
|
||
|
initial: 'idle',
|
||
|
on: {
|
||
|
RESTART: [
|
||
|
{
|
||
|
target: 'secret',
|
||
|
cond: 'isSecret',
|
||
|
},
|
||
|
{
|
||
|
target: 'provider',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
states: {
|
||
|
idle: {},
|
||
|
secret: {},
|
||
|
provider: {
|
||
|
on: {
|
||
|
SUCCESS: 'jwt',
|
||
|
},
|
||
|
},
|
||
|
jwt: {
|
||
|
on: {
|
||
|
SUCCESS: 'token',
|
||
|
},
|
||
|
},
|
||
|
token: {},
|
||
|
},
|
||
|
};
|