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?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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,
      },
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    gexiaoxu created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.