xFlow
  • Overview
    • Introduction
    • Core Features
    • Architecture
      • High Level Architecture
      • Tech Stack
      • Deployment Flexibility
      • Performance and Scalability
      • Security Compliance
  • Getting Started
    • Installation
    • Quick Start
    • Configuration
  • Core Concepts
    • Serverless Workflow Specification
    • Workflow data handling
    • Workflow Expressions
    • Error handling
    • Input and Output schema definition
    • User Task
    • User Forms
      • Lowcode Form
      • Advanced User Form
    • AI Agents in Enterprise Business Processes
    • Comparisons
      • BPMN2
  • Developer Guide
    • Architecture
    • API Reference
    • Workflow States Reference
      • Event State
      • Operation State
      • Switch State
      • Parallel State
      • Inject State
      • ForEach State
      • Callback State
      • UserTask State
      • AIAgent State
      • AIAgentProxy State
      • UserProxyAgent State
      • AI Outbound Agent State
    • Workflow Functions
      • REST
      • GraphQL
      • Custom
        • Built-in Functions
        • Lowcoder Query Function
      • Function Auth
    • Workflow Secrets
    • Integrations
    • Workflow Modeler
    • Frontend Development
      • Forms
        • Lowcode Form
        • Advanced User Form
    • Serverless Workflow Development
      • Operation State
      • Switch State
      • Parallel State
      • ForEach State
      • Callback State
      • User Task State
    • AI Agent Development
      • AI Agent
        • Predefined LLM
        • LLM Configuration
        • Multi LLM Configuration
        • Chat Memory
        • Tools
        • Data Output
        • Agent Outcomes
      • AI Agent Proxy
        • AI Agents Integration
      • User Proxy Agent
      • xChatBot Integration
  • Examples
    • Basic Examples
    • Advanced Examples
      • Loan Approval Workflow
      • QMS AP Workflow
  • Administration
    • Monitoring and Logging
    • Security
    • Performance Tuning
  • Extensions and Customizations
    • Plugins and Add-ons
  • Troubleshooting
    • Common Issues
    • FAQs
  • Release Notes
    • Version History
    • Upcoming Features
  • Support
    • Contact Information
    • Community
Powered by GitBook
On this page
  1. Developer Guide
  2. Workflow Functions

Function Auth

PreviousLowcoder Query FunctionNextWorkflow Secrets

Last updated 9 months ago

Auth definitions can be used to define authentication information that should be applied to function definitions. It can be used for both the retrieval of the function's resource (as defined by the operation property) and for the function's invocation.

Parameter
Description
Type
Required

name

Unique auth definition name. Must follow the Serverless Workflow Naming Convention

string

yes

name

Unique auth definition name. Must follow the Serverless Workflow Naming Convention

string

yes

scheme

Auth scheme, can be "basic", "bearer", or "oauth2". Default is "basic"

enum

no

properties

Auth scheme properties. Can be one of "Basic properties definition", "Bearer properties definition", or "OAuth2 properties definition"

object

yes

The name property defines the unique auth definition name. The scheme property defines the auth scheme to be used. Can be "bearer", "basic" or "oauth2". The properties property defines the auth scheme properties information. Can be one of "Basic properties definition", "Bearer properties definition", or "OAuth2 properties definition"

Basic Properties Definition

See for more information about Basic Authentication scheme.

The Basic properties definition can have two types, either string or object. If string type, it defines a workflow expression that contains all needed Basic auth information. If object type, it has the following properties:

Parameter
Description
Type
Required

username

String or a workflow expression. Contains the user name

string

yes

password

String or a workflow expression. Contains the user password

string

yes

metadata

Metadata information

object

no

Bearer Properties Definition

See for more information about Bearer Authentication scheme.

Parameter
Description
Type
Required

token

String or a workflow expression. Contains the token information

string

yes

metadata

Metadata information

object

no

OAuth2 Properties Definition

See for more information about OAuth2 Authentication scheme.

Parameter
Description
Type
Required

authority

String or a workflow expression. Contains the authority information

string

no

grantType

Defines the grant type. Can be "password", "clientCredentials", or "tokenExchange"

enum

yes

clientId

String or a workflow expression. Contains the client identifier

string

yes

clientSecret

Workflow secret or a workflow expression. Contains the client secret

string

no

scopes

Array containing strings or workflow expressions. Contains the OAuth2 scopes

array

no

username

String or a workflow expression. Contains the user name. Used only if grantType is 'resourceOwner'

string

no

password

String or a workflow expression. Contains the user password. Used only if grantType is 'resourceOwner'

string

no

audiences

Array containing strings or workflow expressions. Contains the OAuth2 audiences

array

no

subjectToken

String or a workflow expression. Contains the subject token

string

no

requestedSubject

String or a workflow expression. Contains the requested subject

string

no

requestedIssuer

String or a workflow expression. Contains the requested issuer

string

no

metadata

Metadata information

object

no

here
here
here