UNPKG

@roadiehq/catalog-backend-module-okta

Version:

A set of Backstage catalog providers for Okta

24 lines (21 loc) 564 B
'use strict'; const userEntityFromOktaUser = (user, namingStrategy, options) => { return { kind: "User", apiVersion: "backstage.io/v1alpha1", metadata: { annotations: { ...options.annotations }, name: namingStrategy(user), title: user.profile.email }, spec: { profile: { displayName: user.profile.displayName ?? void 0, email: user.profile.email }, memberOf: [] } }; }; exports.userEntityFromOktaUser = userEntityFromOktaUser; //# sourceMappingURL=userEntityFromOktaUser.cjs.js.map