vault/ui/mirage/handlers/oidc-config.js
Hamid Ghaf e55c18ed12
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

23 lines
481 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export default function (server) {
// ENTITY SEARCH SELECT
server.get('/identity/entity/id', () => ({
data: {
key_info: { '1234-12345': { name: 'test-entity' } },
keys: ['1234-12345'],
},
}));
// GROUP SEARCH SELECT
server.get('/identity/group/id', () => ({
data: {
key_info: { 'abcdef-123': { name: 'test-group' } },
keys: ['abcdef-123'],
},
}));
}