Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
73 lines (58 loc) · 1.72 KB

File metadata and controls

73 lines (58 loc) · 1.72 KB

Add OAuth Service

Add an OAuth service for users to log in to your workspace.

Name Requires Auth Permission Setting
addOAuthService Yes add-oauth-service None

Payload Parameters

Argument Example Required Description
name okta Required The name of the OAuth service you want to add.

Example call

{
    "msg": "method",
    "method": "addOAuthService",
    "id": "2",
    "params": [
        "Okta"
    ]
}

Example Response

Success

{
    "msg": "updated",
    "methods": [
        "2"
    ]
}

Error

Any of the following errors can occur on the endpoint.

  • No Permission: Occurs when the authenticated user doesn't have the add-oauth-service permission.

{% tabs %} {% tab title="No Permission" %}

{
    "msg": "result",
    "id": "2",
    "error": {
        "isClientSafe": true,
        "error": "error-action-not-allowed",
        "reason": "Adding OAuth Services is not allowed",
        "details": {
            "method": "addOAuthService",
            "action": "Adding_OAuth_Services"
        },
        "message": "Adding OAuth Services is not allowed [error-action-not-allowed]",
        "errorType": "Meteor.Error"
    }
}

{% endtab %} {% endtabs %}

Change Log

Version Description
0.51.0 Added