- Template: microservice
- Created ABP Studio Version: 0.9.26
- Current ABP Studio Version: 1.2.2
- Multi-Tenancy: Yes
- UI Framework: angular
- Theme: leptonx
- Theme Style: system
- Run Install Libs: Yes
- Database Provider: ef
- Database Management System: sqlserver
- Mobile Framework: none
- Public Website: No
- Include Tests: Yes
- Dynamic Localization: Yes
- Kubernetes Configuration: Yes
- Grafana Dashboard: Yes
- Use Local References: No
- Optional Modules:
- GDPR
- FileManagement
- TextTemplateManagement
- AuditLogging
- Chat
- OpenIddictAdmin
Hi,
When I deployed to Kubernetes cluster I am receiving the following errors:
Any ideas?
2 Answer(s)
-
0
The error message in your screenshot indicates an issue with the OpenID Connect discovery document, specifically: "error validating authorization_endpoint in discovery document ['https for all urls required. Also for urls received by discovery.']". This means that all URLs in your OpenIddict/OpenID Connect configuration must use HTTPS, and any endpoints returned by the discovery document must also be HTTPS.
This is a common issue when deploying ABP microservice solutions to Kubernetes or other environments where HTTPS is enforced.
Steps to resolve:
Ensure all URLs in your appsettings and environment variables use HTTPS, not HTTP. This includes:
- AuthServer:Authority
- AuthServer:MetaAddress
- IdentityClients:Default:Authority
- RemoteServices:...:BaseUrl
Make sure your Kubernetes ingress/controller is configured to serve HTTPS and that your certificates are valid.
In your OpenIddict server configuration, set the issuer to the correct HTTPS URL:
PreConfigure<OpenIddictServerBuilder>(builder => { builder.SetIssuer(new Uri(configuration["AuthServer:Authority"])); // Should be HTTPS });
If you are using self-signed certificates for local development, ensure your browser trusts them. For production, use a valid certificate authority.
After making these changes, clear your browser cache and tokens.
For more details and troubleshooting steps, see:
- ABP Support: Angular Front-End Redirect Auth Issue Kubernetes Deployment
- ABP Support: Angular Front-End Redirect Auth Issue Kubernetes Deployment (related)
These steps should resolve the "https for all urls required" error and allow your ABP Angular application to authenticate correctly in Kubernetes.
Sources:
- https://abp.io/support/questions/6033
- https://abp.io/support/questions/5701
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
I think I need a human assistance