loginmethod-update
Create or update authentication methods for connectors to access external systems, supporting UserCredentials, OAuth2, Token, and SAP-SSO login types with various configuration options.
Instructions
Create or update a Login Method
Create or update login methods for authenticating connectors with external systems.
Supported Types:
UserCredentials (BasicAuth): Username/password authentication
OAuth2: OAuth2 client-based authentication
Token: Token-based authentication (API keys, SimplifierToken)
SAPSSO: SAP-Single Sign on via Logon Ticket
Note that the type of a login method cannot be changed later. If you need to change the type, create a new login method instead.
UserCredentials (BasicAuth)
Creates or updates a basic authentication login method with various source types.
UserCredentials with Provided Source (Default)
Stores username and password directly in the login method.
Configuration:
loginMethodType: "UserCredentials"
sourceType: "Provided" (source ID: 1) - default
Target: Default (target ID: 0) - standard authentication header
Example - Creating BasicAuth:
Example - Updating BasicAuth password:
UserCredentials with Profile Reference
References a key in the user's profile.
Example:
UserCredentials with User Attribute Reference
References a user attribute by name and category.
Example:
OAuth2 Login Methods
Creates or updates OAuth2-based login methods with various source configurations.
IMPORTANT: When creating an OAuth2 login method with a client reference, the oauth2ClientName MUST match one of the existing OAuth2 clients configured in Simplifier. You can discover available clients using the simplifier://oauthclients resource before creating the login method.
OAuth2 with Client Reference
Uses a configured OAuth2 client from Simplifier.
Discover available clients: Use simplifier://oauthclients resource
Configuration:
loginMethodType: "OAuth2"
sourceType: "ClientReference"
Target: 0 = default header, 1 = custom header, 2 = query parameter
Example - Default header:
Example - Custom header:
Example - Query parameter:
OAuth2 with Profile Reference
References a key in the user's profile.
Example:
OAuth2 with User Attribute Reference
References a user attribute by name and category.
Example:
Token Login Methods
Creates or updates Token-based login methods for API authentication, including SimplifierToken support. Can be used for API-KEYs or for tokens, that you have received with former Simplifier Auth Clients and stored in the UserProfile or in the UserAttributes. In case you have received a token from a former connector call, you might want to add the token with every call in a header via a connector call input parameter.
Token with Default Source
Uses an empty configuration (no credentials stored). Typically used as a placeholder.
Configuration:
loginMethodType: "Token"
sourceType: "Default" (source ID: 0)
Target: 0 = default header, 1 = custom header
Example:
Token with SystemReference Source
Uses the SimplifierToken for authentication. This is the primary use case for authenticating Simplifier apps accessing the REST API.
Configuration:
loginMethodType: "Token"
sourceType: "SystemReference" (source ID: 3)
Target: 0 = default header, 1 = custom header
Example:
Token with Provided Source
Stores a token value directly in the login method. Useful for API keys.
Configuration:
loginMethodType: "Token"
sourceType: "Provided" (source ID: 1)
Target: 0 = default header, 1 = custom header
Example - Creating Token:
Example - Updating Token value:
Example - Updating description only (without changing token):
Token with Custom Header
Place the token in a custom HTTP header.
Example:
Token with Profile Reference
References a token stored in the user's profile.
Example:
Token with User Attribute Reference
References a token from a user attribute.
Example:
SAP-SSO Login Methods
Creates or updates SAP-SSO login methods for API authentication. Can be used for users authenticated against a SAP authentication method or with a constant value or one stored in the UserProfile or in the UserAttributes.
SAP-SSO with Default Source
Uses an empty configuration (no credentials stored). Uses the SAP Logon Ticket from the user, which needs to be logged in using SAP-SSO.
Configuration:
loginMethodType: "SAPSSO"
sourceType: "Default" (source ID: 0)
Target: 0 = default
Example:
SAP-SSO with Provided Source
Stores a logon ticket value directly in the login method. Useful for API keys.
Configuration:
loginMethodType: "SAPSSO"
sourceType: "Provided" (source ID: 1)
Target: 0 = default header, 1 = custom header
Example - Creating SAP-SSO:
Example - Updating ticket value:
Example - Updating description only (without changing ticket):
SAP-SSO with Profile Reference
References a ticket stored in the user's profile.
Example:
SAP-SSO with User Attribute Reference
References a ticket from a user attribute.
Example:
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loginMethodType | Yes | Type of login method: UserCredentials for BasicAuth, OAuth2 for OAuth2-based auth, Token for token-based auth, SingleSignOn for SAP-SSO Logon Ticket | |
| name | Yes | Name of the login method | |
| description | Yes | Description of the login method | |
| sourceType | No | Source type: * Default (system default - credentials for UserCredentials, OAuth2 client for OAuth2, empty for Token, user logon ticket for SAP-SSO) * SystemReference (Token - uses SimplifierToken) * Provided (UserCredentials - username/password, Token - token value) * Reference (OAuth2 - OAuth2 client reference) * ProfileReference (user profile key) * UserAttributeReference (user attribute) | |
| username | No | [UserCredentials Default/Provided] Username for basic authentication. Must not be empty string. If the information is not given (i.e. in case of Microsoft PAT authentication), use a non empty placeholder | |
| password | No | [UserCredentials Default/Provided] Password for basic authentication | |
| changePassword | No | [UserCredentials Default/Provided] Set to true when updating to change the password | |
| token | No | [Token Provided] Token value for authentication | |
| changeToken | No | [Token Provided] Set to true when updating to change the token | |
| ticket | No | [SingleSignOn Provided] Ticket value for authentication | |
| changeTicket | No | [SingleSignOn Provided] Set to true when updating to change the ticket | |
| oauth2ClientName | No | [OAuth2 Default/Reference] Name of the OAuth2 client (discover via simplifier://oauthclients). **Important**: The `oauth2ClientName` **MUST** match one of the existing OAuth2 clients configured in Simplifier. You should discover available clients using the `simplifier://oauthclients` resource before creating the login method. | |
| profileKey | No | [ProfileReference] Key name in the user's profile | |
| userAttributeName | No | [UserAttributeReference] Name of the user attribute | |
| userAttributeCategory | No | [UserAttributeReference] Category of the user attribute | |
| targetType | No | [OAuth2/Token] Target type: Default (standard auth header), CustomHeader (custom header name), QueryParameter (query param - OAuth2 only) | Default |
| customHeaderName | No | [OAuth2 CustomHeader] Name of the custom authentication header | |
| queryParameterKey | No | [OAuth2 QueryParameter] Key name for the query parameter |