-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Okta Node): Add Okta Node (#10278)
Co-authored-by: Giulio Andreini <[email protected]> Co-authored-by: Elias Meire <[email protected]>
- Loading branch information
1 parent
71b6c67
commit 5cac0f3
Showing
11 changed files
with
1,414 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import type { INodeType, INodeTypeDescription } from 'n8n-workflow'; | ||
import { userFields, userOperations } from './UserDescription'; | ||
import { getUsers } from './UserFunctions'; | ||
|
||
export class Okta implements INodeType { | ||
description: INodeTypeDescription = { | ||
displayName: 'Okta', | ||
name: 'okta', | ||
icon: { light: 'file:Okta.svg', dark: 'file:Okta.dark.svg' }, | ||
group: ['transform'], | ||
version: 1, | ||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', | ||
description: 'Use the Okta API', | ||
defaults: { | ||
name: 'Okta', | ||
}, | ||
inputs: ['main'], | ||
outputs: ['main'], | ||
credentials: [ | ||
{ | ||
name: 'oktaApi', | ||
required: true, | ||
}, | ||
], | ||
requestDefaults: { | ||
returnFullResponse: true, | ||
baseURL: '={{$credentials.url.replace(new RegExp("/$"), "")}}', | ||
headers: {}, | ||
}, | ||
properties: [ | ||
{ | ||
displayName: 'Resource', | ||
name: 'resource', | ||
type: 'options', | ||
noDataExpression: true, | ||
options: [ | ||
{ | ||
name: 'User', | ||
value: 'user', | ||
}, | ||
], | ||
default: 'user', | ||
}, | ||
|
||
// USER | ||
...userOperations, | ||
...userFields, | ||
], | ||
}; | ||
|
||
methods = { | ||
listSearch: { | ||
getUsers, | ||
}, | ||
}; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.