Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P portal
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • 科探开源
  • portal
  • Wiki
    • 数据管理手册
  • ETL04.Source 认证插件 authentication

Last edited by asdu Dec 21, 2020
Page history

ETL04.Source 认证插件 authentication

1.Source 认证插件 authentication

  1. 从数据源获取的数据,然后对其解析,提取想要的数据字段

2.支持插件

Plugins 说明
oauth2_client 支持标准版的oauth2认证, code、password、 client_credentials
basic 支持basic认证

3. oauth2_client 配置结构

{
  "authentication":{
    "plugin":"oauth2_client",
    "oauth2":{
      "grant_type":"client_credentials",
      "urlAccessToken":"http:\/\/sandbox.qtgl.com.cn\/infoplus\/oauth2\/token",
      "clientId":"demo",
      "clientSecret":"demosecret",
      "scopes":"sys_profile",
      "timeout":"15"
    }
  }
}
    
{
  "authentication":{
    "plugin":"oauth2_client",
    "oauth2":{
      "grant_type":"client_credentials",
      "urlAccessToken":"http:\/\/sandbox.qtgl.com.cn\/infoplus\/oauth2\/token",
      "redirectUri": "[site:url]/sso/callback",
      "urlAuthorize": "https://work.ketanyun.com/sso/oauth2/",
      "clientId":"demo",
      "clientSecret":"demosecret",
      "scopes":"sys_profile",
      "timeout":"15"
    }
  }
}
    

3.1.字段说明

变量 值
grant_type 授权类型支持: authorization_code、client_credentials、password
urlAccessToken token先接
redirectUri redirectUri
urlAuthorize urlAuthorize
clientId 认证id
clientSecret 密钥
timeout 请求超时设置
Clone repository
  • Home
  • 数据管理手册
    • 094.Views twig 配置
    • ETL01.数据管理使用手册 V2.0
    • ETL02.Source 数据请求 data_fetcher_plugin
    • ETL03.Source 解析 data_parser_plugin
    • ETL04.Source 认证插件 authentication
    • ETL05.Porcess plugins 明细
    • ETL06.URL endpoint 数据管理E
    • ETL07.Mysql 数据管理
    • ETL08.MSSQL 数据管理
    • ETL09.Oracle 数据管理
    • ETL10.Token 列表
  • 门户V2 API 文档
    • 01.Portal Rest API v2
    • 01.Resource API
    • 02.App API
View All Pages