简体   繁体   English

WSO2 API 用户管理

[英]WSO2 API User Mangement

I have my own MySql database with users and roles.我有自己的 MySql 数据库,其中包含用户和角色。

How to integrate with WSO2 so that a token can be generated from my MySql database?如何与 WSO2 集成以便可以从我的 MySql 数据库生成令牌?

If your database schema is not as wos2 IS schemas, you cannot integrate your DB directly.如果您的数据库架构不是 wos2 IS 架构,则无法直接集成您的数据库。 (you can check the DB scripts in the product to see the schema) (您可以检查产品中的数据库脚本以查看架构)

If your DB schema is compliant with wso2 IS then follow doc如果您的数据库架构符合 wso2 IS,则遵循 doc

1. https://is.docs.wso2.com/en/next/setup/changing-to-mysql/# ! 1. https://is.docs.wso2.com/en/next/setup/changed-to-mysql/# [IS 5.9 & upwards] 2. https://docs.wso2.com/display/IS570/Configuring+a+JDBC+User+Store [IS5.7] [IS 5.9 及以上] 2. https://docs.wso2.com/display/IS570/Configuring+a+JDBC+User+Store [IS5.7]

If it is not compliant then you have two options如果它不合规,那么您有两个选择

  1. Write custom userstore manager and connect your existing DB : https://docs.wso2.com/display/IS570/Writing+a+Custom+User+Store+Manager编写自定义用户存储管理器并连接您现有的数据库: https ://docs.wso2.com/display/IS570/Writing+a+Custom+User+Store+Manager

  2. Export you users from your current DB to wso2 IS compliant DB.将用户从当前数据库导出到符合 wso2 IS 的数据库。 To export user wso2 provide options to use soap endpoint: https://is.docs.wso2.com/en/next/develop/managing-users-and-roles-with-apis/#adduser or rest endpoint: https://is.docs.wso2.com/en/next/develop/scim2-rest-apis/#/Users%20Endpoint/createUser .要导出用户WSO2提供的选项使用SOAP端点: https://is.docs.wso2.com/en/next/develop/managing-users-and-roles-with-apis/#adduser或其他端点: HTTPS:/ /is.docs.wso2.com/en/next/develop/scim2-rest-apis/#/Users%20Endpoint/createUser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM