Open Closed

how to config oAuthConfig in angular? #411


User avatar
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)
  • User Avatar
    0
    Mehmet created

    Hi @gexiaoxu

    You can add requireHttps: false property to the oAuthConfig object but if your backend running on HTTP, you can not use the authorization code flow. Please try adding the requireHttps 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,
      },
    
  • User Avatar
    0
    gexiaoxu created

    yes, you are right! thanks! just add requireHttpsproperty and it works

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07