更改username_java_script_regex会导致401未经授权的错误

时间:2020-03-31 05:49:58

标签: wso2 wso2is wso2carbon

这个问题是以下问题的跟进,其中我尝试在WSO2 IS 5.9.0中使用包含30个以上字符的电子邮件进行注册。

My Previous Stack Overflow Question

因此,该解决方案说要应用给定的正则表达式。

[user_store]
username_java_script_regex = '^[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$'
username_java_regex='^[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}'

然后,我可以使用包含30个以上字符的电子邮件进行注册,但是ouath2 API受到了损害。

将其集成后,可以使用包含30个以上字符的电子邮件在wso2中进行注册,但是使用/ ouath / introscpect API中生成的令牌,则会给401未经授权。

我的deployment.toml文件-------->

[server]
hostname = "localhost"
node_ip = "127.0.0.1"
base_path = "https://$ref{server.hostname}:${carbon.management.port}"

[super_admin]
username = "admin"
password = "admin"
create_admin_account = true

[http_access_log]                                                               #enabling http logs in certain pattern
pattern = "%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i %T"

[tenant_mgt]
enable_email_domain= true

[user_store]
type = "database"
scim_enabled = true
user_name_attribute = "mail"
username_java_script_regex = '^[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$'
username_java_regex='^[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}'

[database.identity_db]
type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"
driver = "com.mysql.jdbc.Driver"

[database.shared_db]
type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"
driver = "com.mysql.jdbc.Driver"

[[cache.manager]]
name = "LocalClaimInvalidationCache"
timeout = "300"
capacity = "5000"

[carbon_health_check]
enable= true

[keystore.primary]
name = "wso2carbon.jks"
password = "wso2carbon"

[admin_service.wsdl]
enable = true

0 个答案:

没有答案