0
gexiaoxu created
- ABP Framework version: v3.1.0
- UI type: Angular
how to config oAuthConfig in angular?
The normal configuration is as follows:
I modified the configuration node issuer.
When issuer is not localhost,Clicking the login button does not respond.I can't jump to the login page.
And no address is requested .well-known/openid-configuration.
http://www.hd-auth.cn:44318 is http://192.168.3.222:44318
How do I configure it?
2 Answer(s)
-
0
Hi @gexiaoxu
You can add
requireHttps: false
property to theoAuthConfig
object but if your backend running on HTTP, you can not use the authorization code flow. Please try adding therequireHttps
property, let me know if the code flow is working.If it doesn't work, update the
oAuthConfig
as shown below:oAuthConfig: { issuer: 'http://www.hd-auth.cn:44318', clientId: 'AuthServer_App', dummyClientSecret: 'place client secret here', scope: 'AuthServer', requireHttps: false, },
-
0
yes, you are right! thanks! just add
requireHttps
property and it works